• Post Reply Bookmark Topic Watch Topic
  • New Topic

Keep getting this error code  RSS feed

 
Joshua Perrine
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Users\jperrin\Downloads\DownloadAPPJRP.java:17: error: ';' expected
        String enter choice = "y";
                    ^
1 error

Tool completed with exit code 1
 
Carey Brown
Saloon Keeper
Posts: 3323
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't have a space in a variable name.

Please continue to use your original post and add your new stuff to the bottom. Don't start a new topic if it still pertains to an existing topic.
 
Pete Letkeman
Ranch Foreman
Posts: 906
26
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRance Joshua.

As Carey has stated, you have an invalid variable name.
You can read about the rules for names on this page https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html which is part of the the official Oracle Java tutorial.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!