• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find symbol  RSS feed

 
shabbir makai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First.java:2: cannot find symbol
symbol : class Strings
location: class First
public static void main(Strings args[]) {
__________________ ^
First.java:3: cannot find symbol
symbol : method printlp(java.lang.String)
location: class java.io.PrintStream
System.out.printlp(" hello every 1 ");
________ ^

class First {
public static void main(Strings args[]) {
System.out.printlp(" hello every 1 ");
}
}

 
Paul Clapham
Sheriff
Posts: 22829
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no class called "Strings". There is on the other hand a class named "String" which would normally be used in that method.
 
shabbir makai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
makes sense
 
shabbir makai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OMG i didnt notice
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh ok. Paul got it before me.
 
Jeff Kendall
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also unless I'm mistaken you'll want to use println not printlp.
 
Ronald Castillo
Ranch Hand
Posts: 47
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You got your method name wrong, you're using printlp. It's println().
Cannot find symbol usually means that the method you're trying to invoke doesn't exist.
 
shabbir makai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just 1 more error with the dots
 
shabbir makai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch shabbir makai and Jeff Kendall
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!