+ 1
What's wrong with my code? Please help me!
2 Antworten
+ 3
Remove the int from int ticket = input.nextInt(); because you already declared ticket as int on the previous line.
And at Char h = city.CharAt(0)
The Char h should be char h, not capitalized
city.CharAt(0) should be city.charAt(0), the c is lower case.