11th Jan 2023, 2:53 PM
Vishesh Kumar
2 Answers
+ 5
Errors: -> Line 9 using == instead of = -> Missing } at end of program -> using System out.println instead of System.out.println (in 2 places) -> if (a!b!c)?? Did you mean if (a!=b && b!=c && a!=c)? -> if (a==b==c)? Did you mean if (a==b && b==c)? Other observations: -> Unnecessary extra braces {... } -> Poor indentation formatting
11th Jan 2023, 3:24 PM
Brian
Brian - avatar
+ 3
Add `public` in your outer class. Like this: public class UserInputDemo You will also find that your programs has a few errors. First one is using `==` instead of `=` when assigning the input value to `c`. I'll leave the rest for you to debug. Happy coding :)
11th Jan 2023, 3:20 PM
Mozzy
Mozzy - avatar