• Post Reply Bookmark Topic Watch Topic
  • New Topic

i got cnanot find symbol while compiling my program please help  RSS feed

 
nil wangad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




output:

E:\SEM6>javac main_DFA.java
main_DFA.java:18: error: cannot find symbol
lang[i]=sr.nextChar();
^
symbol: method nextChar()
location: variable sr of type Scanner
1 error
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nil wangad wrote:E:\SEM6>javac main_DFA.java
main_DFA.java:18: error: cannot find symbol
lang[i]=sr.nextChar();
^
symbol: method nextChar()
location: variable sr of type Scanner
1 error

The Scanner class doesn't have a nextChar method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!