[Logo]
Forums Register Login
Getting Error Help........
Hi,

I have recently started Java Programming with Head First Java. Now when I am compile below coding the code are not compile...
It is showing message..

//Code:

public static void main(String[] args) {
int x = 5;
while ( x > 1) {
x = x -1;
if (x < 3) {
System.out.println("Small x");
}
}
}

After Compile get this Message:

javac: file not found: ExlbSmall.java
Usage: javac <options> <source files>
use -help for a list of possible options

Please guide me what's going on here in my code?

Thanks in advance


Your Class name might not be same as the source file name. The two names must be same, please check that.
Thanks got it...

from next time i will keep in mind....
Please make sure to give full details. The code you showed looks all right, but it doesn't appear to use the ExlbSmall file anywhere in what you quoted.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 22, 2017 06:16:01.