| New Reply |
Very simple java program not working! |
Share Thread | Thread Tools |
| Nov12-12, 11:27 AM | #1 |
|
|
Very simple java program not working!
I am using the netbeans IDE
All I am trying to do is print out to the screen, but I keep getting this error. Code:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: system.out.println at mysqlconn.mainhgf4.main(mainhgf4.java:19) Code:
package mysqlconn;
import java.io.BufferedReader;
/**
*
*/
public class mainhgf4{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
system.out.println("Welcome friend!!");
}
}
|
| PhysOrg.com |
science news on PhysOrg.com >> Hong Kong launches first electric taxis >> Morocco to harness the wind in energy hunt >> Galaxy's Ring of Fire |
| Nov12-12, 11:44 AM | #2 |
|
|
Try System.out.println(...)
|
| Nov12-12, 04:55 PM | #3 |
|
Recognitions:
|
Java is a case-sensitive language, and by convention, class names (like System), start with an upper-case letter, whereas variable and method names start with a lower-case letter (like out & println() )
|
| Nov13-12, 07:04 PM | #4 |
|
|
Very simple java program not working!
Ahh wow that was simple lol thank you, I might be back for more questions because if I had trouble with that then there is no telling how many problems I am going to run across lol
|
| New Reply |
| Thread Tools | |
Similar Threads for: Very simple java program not working!
|
||||
| Thread | Forum | Replies | ||
| simple java grade program | Programming & Comp Sci | 7 | ||
| Simple Java class + driver program help. Program isn't working, but should be. | Programming & Comp Sci | 7 | ||
| Java program isn't working please help | Programming & Comp Sci | 6 | ||
| Very Simple Java Program. | Engineering, Comp Sci, & Technology Homework | 0 | ||
| Simple Java Program Help | Programming & Comp Sci | 18 | ||