Please Help
I cant run Hello.java program in Fedora
public class Hello { public static voild main(String[] args){ String name; name= "Erica"; Systems.out.println("hello, +name+ "!"); } } |
If I may:
All that said, you appear to have at least two syntactical errors: a misspelled function definition, and a missing closing quote. |
Quote:
Please use code-tags when posting code and/or data. What exactly do you mean? After correction of several errors it runs fine. Or are you not able to compile it? Keep in mind that Java also requires that the filenames have to follow this naming pattern: classname.java P.S.: The corrected version: Code:
public class Hello { |
I cant compile the file i keep getting javac: file not found: Hello.java
|
Quote:
classname.java In your case you will have to name your file Hello.java and compile it with javac Hello.java Keep in mind that java is case sensitive. |
All times are GMT -5. The time now is 07:18 AM. |