Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.io.IOException;
  2.  
  3. public class Test {
  4.     public static void main(String[] args) throws IOException {
  5.         int cha = 0;
  6.  
  7.         while (cha != '*') {
  8.             System.out.print("Enter a Character: ");
  9.             cha = System.in.read();
  10.             System.out.println("You entered: " + cha);
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement