[Solved] Eclipse Not Working
It is working, but for this particular set of code, it won't output anything. For example, the following works fine.
Code java:
class apples{
public static void main(String args[]){
System.out.println("Hello JPF!");
}
}
The output is as expected - works fine. However, with some slightly more complicated code, absolutely no output is found. When clicking on the run button, the cursor will show that it's loading, but nothing is outputted.
Code java:
import java.util.Scanner;
class apples{
public static void main(String args[]){
Scanner bucky = new Scanner(System.in);
System.out.println(bucky.nextLine());
}
}
Any explanation as to why this is happening would be greatly appreciated. I think it's because we're now importing something, but I'm not sure.