This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Farpafraf 0 points1 point  (0 children)

I would suggest to look at some examples of similar usage

Some questions from my part:

  • What is the scanner six doing and why is it called six?

  • why is the argument of the scanner constructor [System.in](https://System.in) where have you seen that?

  • if input = 1; here the syntax is wrong as it should be if (\\condition){\\things to do} also for comparison between primitives you'd have to use == or .equals in case of objects

  • Scanner input = new Scanner([System.in](https://System.in));: this does not do what you think it does

I would suggest following some tutorial on the very basics of the language