Java Very simple java program not working

  • Thread starter Thread starter camel-man
  • Start date Start date
  • Tags Tags
    Java Program
AI Thread Summary
The discussion revolves around a user encountering a compilation error in their Java code while using the NetBeans IDE. The error message indicates an issue with the statement "system.out.println", which is incorrectly written in lowercase. The correct syntax is "System.out.println", highlighting Java's case sensitivity. The user expresses frustration with transitioning from C programming to Java, particularly in integrating SQL and database functionality. After receiving guidance on the correct syntax, the user acknowledges the simplicity of the solution and anticipates needing further assistance with potential future issues.
camel-man
Messages
76
Reaction score
0
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)

Here is my short code

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!");
    }
}

This is not really a java program, it is a SQL program that I am supposed to somehow implement a DB in java... IDK I am so frustrated over this. I am originally a C programmer and have very basic knowledge of java, but the fact that I have to incorporate a database and SQL queries is making this impossible for "ME", I know a lot of people can do this with their eyes closed.
 
Technology news on Phys.org
Try System.out.println(...)
 
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() )
 
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
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top