/* * Command.java * * Created on May 4, 2003, 3:27 AM */ package org.jive.UI; import java.io.BufferedReader; import java.io.InputStreamReader; /** * Command-line processor. * @author Gili Tzabari */ public class Command { /** * Creates a new command-line processor. */ public Command() { } /** * @param args the command line arguments */ public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Prompt> "); System.out.flush(); String text = in.readLine(); System.out.println("got: " + text); } catch (Exception e) { e.printStackTrace(); } } }