0

how can i compile a program?

In sololearn app, there is a task to run a code that print "apples". so how can I do that?

16th Apr 2017, 7:38 PM
Rex
1 Answer
+ 7
Go back and skim through the lesson. You need a class, and a main method. It would be in the 'Running A Java Program' section. public class Program{ public static void main(String[] args){ // print apples here } } You can find how to print in the lesson, it shows that plenty of times. If you want to actually run the program, go to the 'code playground', make the code and run it. If you're just referring to some quiz question in the app, refer to what I showed above.
16th Apr 2017, 8:32 PM
Rrestoring faith
Rrestoring faith - avatar