Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. public class Main {
  2.    
  3.     public static void main(String args[]) throws IOException{
  4.         Runtime.getRuntime().exec("cmd.exe /c \"start\"");
  5.        
  6.         // That one does not work
  7.         Scanner sc = new Scanner(System.in);
  8.        
  9.         // That one does not work either
  10.         System.out.println("-----------=<KALKULATOR NWD>=-----------");
  11.         String test = sc.next();
  12.         System.out.println(test + ", test");
  13.        
  14.         sc.close();
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement