Home > Back-end >  Can't find the symbol, package system does not exist
Can't find the symbol, package system does not exist

Time:10-31

Package zknu;
Public class helloword {
Public static void main (string [] args) {
System. Out.println (" the first Java application!" );
}
}


Application results:
D: \ & gt; Javac helloword. Java
Helloword. Java: 3: error: can't find the symbols
Public static void main (string [] args) {
^
Symbol: class string
Location: class helloword
Helloword. Java: 4: error: package system there is no
System. Out.println (" the first Java application!" );
^
Two mistakes

CodePudding user response:

The System, this is the name of the class, capitalize the first letter

CodePudding user response:

The
refer to the original poster weixin_46396865 response:
package zknu;
Public class helloword {
Public static void main (string [] args) {
System. Out.println (" the first Java application!" );
}
}


Application results:
D: \ & gt; Javac helloword. Java
Helloword. Java: 3: error: can't find the symbols
Public static void main (string [] args) {
^
Symbol: class string
Location: class helloword
Helloword. Java: 4: error: package system there is no
System. Out.println (" the first Java application!" );
^
Two error


A String to uppercase, install a compiler! Will automatically help you to correct spelling errors,

CodePudding user response:

You create the name of the class is also the first letter is capitalized Helloword
  • Related