Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- public class Test {
- public static void main(String[] args) throws IOException {
- int cha = 0;
- while (cha != '*') {
- System.out.print("Enter a Character: ");
- cha = System.in.read();
- System.out.println("You entered: " + cha);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement