O,又是花花,没办法,我是初学者,不懂处多多
望指教了:
ReadFromFile.java:9: ')' expected
while((char ch = (char)System.in.read())!='\n')
^
ReadFromFile.java:35: illegal start of expression
*/ }
^
ReadFromFile.java:13: ')' expected
}
^
ReadFromFile.java:9: incompatible types
found : char
required: boolean
while((char ch = (char)System.in.read())!='\n')
^
4 errors
望指教了:
ReadFromFile.java:9: ')' expected
while((char ch = (char)System.in.read())!='\n')
^
ReadFromFile.java:35: illegal start of expression
*/ }
^
ReadFromFile.java:13: ')' expected
}
^
ReadFromFile.java:9: incompatible types
found : char
required: boolean
while((char ch = (char)System.in.read())!='\n')
^
4 errors
??
System.in.read(str);