Hello I know C++ in the language I can input data by using cin >> x; How can I do this in Java? Thanks
posted 16 years ago
umm, there are many ways to do this kind of stuff. i'll give one example : (import the java.io.*) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String input = in.readLine(); eh, i think i got a kind of de javu hope that helps cyao !