• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to detect and correct d error..plss help

 
Abhilash Sharma
Ranch Hand
Posts: 67
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is stack implementation using java
the error occur in 74 line when while(!stack.isEmpty()) is called.
it says ';' expected...m unable to detect dis. ..please anyone can correct d mistake...

here is d code..


 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're using a keyword that doesn't exist. (Hint: Java is case-sensitive.)
 
Rob Spoor
Sheriff
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Please:
1) UseCodeTags next time. I'll add them for you this time.
2) UseRealWords. "d", "dis", "m unable" should be "the", "this" and "I am unable".
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also format you code properly. Use indentations and blank lines to group related lines of code (methods for instance).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic