• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

sorry. Dont read this

Pyro

Banned
Simple I/O

Objects
System.out alows us to print to the screen from the PrintScreen class.
System.in allows us to read form the keyboard

Using System.in
1. import java.io.* for every program using system.in
2. The method header for all methods reading from the keyboard must be as follows:
public static void method_name (arguments) throws IOException {}
3. We must declare the keyboard.
BufferReader kb = new BufferReader (new InputStreamReader(System.in));
// Can only be declared once in a program to set up the keyboard.
4. To read input use:
String name = kb.readLine();
//reads to return char
 
Back
Top