• Post Reply Bookmark Topic Watch Topic
  • New Topic

package Sytem does not exist  RSS feed

 
praneeth chakri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am truly a java beginner!i got an error in this program that is ".\String.java:8: error: package Sytem does not exist
Sytem.out.println(101);"in my program there is no 101 line but i got this error could you please tell me the solution!please !


 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
praneeth chakri wrote:i am truly a java beginner!i got an error in this program that is ".\String.java:8: error: package Sytem does not exist
Sytem.out.println(101);"in my program there is no 101 line but i got this error could you please tell me the solution!please !

class A
{
static int x = 10;
int y=(20);
}
class App1
{
public static void main(String args[])
{
A obj1 = new A();
A obj2 = new A();
obj1.x = obj1.x+10;
obj1.y = obj1.y+20;
}}


Spelling matters. System and Sytem are not the same thing.

And welcome to the ranch...

Henry
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!