Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with System.out.print

 
Rohit chandra
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



The System.out.println in class pdos throws error as
C:\Java>javac Pdog.java
Pdog.java:12: cannot resolve symbol
symbol : method name ()
location: class Dog
System.out.prinln(dg.name());
If i swap the dg.name with "hello". then the compiler doesn't throws any error.
 
Rohit chandra
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry...i figured out the mistake.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic