Posts by Salc • 21 points
1 post
-
2
votes3
answers159
viewsQ: Scanner gives error if inverting the order in which data is read
When I put to read first the int and then the chain of string, the system works smoothly, but when I invert it gives an error and does not finish. import java.util.Scanner; class main { public…