Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First book "% javac"

 
Mark Walton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brand new to this Java game (although I've been an old-style programmer for 30 years) and I'm using the Head First book.

It keeps referring to command prompts % javac and similar.

What the heck is the % for?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12085
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what OS are you using? that '%' is really just your command line. on windows, it might actually be "C:\>". on Unix, it might look like "->", etc.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It only refers to your command prompt. If you're on Windows, think of it as C:\>.
 
Mark Walton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. I knew the code worked without the "%" - I just didn't realise that it meant "command prompt" - it actually looks like you're meant to type it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic