新手上路,求专家们指点一下,我不是很清楚为什么 custNo=input.nextlnt();这串代码会报错,以及xception in thread "main" java.lang.Error: Unresolved compilation problem:The method nextlnt() is undefined for the type Scanner
at win.city.main(city.java:9)
的形成是啥原因?
你写错了,是nextInt()