List of usage examples for java.lang System in
InputStream in
To view the source code for java.lang System in.
Click Source Link
From source file:com.alibaba.dubbo.examples.callback.CallbackProvider.java
public static void main(String[] args) throws Exception { String config = CallbackProvider.class.getPackage().getName().replace('.', '/') + "/callback-provider.xml"; ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config); context.start();//from w ww . j a v a 2 s .com System.in.read(); }
From source file:com.alibaba.dubbo.examples.version.VersionProvider2.java
public static void main(String[] args) throws Exception { String config = VersionProvider2.class.getPackage().getName().replace('.', '/') + "/version-provider2.xml"; ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config); context.start();//from w w w . j a v a 2 s . c om System.in.read(); }
From source file:TryThread.java
public static void main(String[] args) { Thread first = new Thread(new TryThread("A ", "a ", 200L)); Thread second = new Thread(new TryThread("B ", "b ", 300L)); Thread third = new Thread(new TryThread("C ", "c ", 500L)); System.out.println("Press Enter when you have had enough...\n"); first.start();// w ww . ja v a 2 s. c om second.start(); third.start(); try { System.in.read(); System.out.println("Enter pressed...\n"); } catch (IOException e) { System.out.println(e); } System.out.println("Ending main()"); return; }
From source file:TryThread.java
public static void main(String[] args) { Thread first = new Thread(new TryThread("A ", "a ", 200L), "name"); Thread second = new Thread(new TryThread("B ", "b ", 300L)); Thread third = new Thread(new TryThread("C ", "c ", 500L)); System.out.println("Press Enter when you have had enough...\n"); first.start();//from w w w . ja v a 2 s. c om second.start(); third.start(); try { System.in.read(); System.out.println("Enter pressed...\n"); } catch (IOException e) { System.out.println(e); } System.out.println("Ending main()"); return; }
From source file:com.alibaba.dubbo.examples.heartbeat.HeartbeatProvider.java
public static void main(String[] args) throws Exception { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( HeartbeatProvider.class.getPackage().getName().replace('.', '/') + "/heartbeat-provider.xml"); context.start();/*from ww w . j ava 2 s . c o m*/ System.in.read(); }
From source file:FlightInfo.java
public static void main(String args[]) { String to, from;/* w ww . j a va 2 s. c o m*/ Depth ob = new Depth(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ob.setup(); try { System.out.print("From? "); from = br.readLine(); System.out.print("To? "); to = br.readLine(); ob.isflight(from, to); if (ob.btStack.size() != 0) ob.route(to); } catch (IOException exc) { System.out.println("Error on input."); } }
From source file:com.alibaba.dubbo.examples.annotation.AnnotationProvider.java
public static void main(String[] args) throws Exception { String config = AnnotationProvider.class.getPackage().getName().replace('.', '/') + "/annotation-provider.xml"; ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config); context.start();/*w w w . j a va 2 s . co m*/ System.in.read(); }
From source file:com.alibaba.dubbo.examples.validation.ValidationProvider.java
public static void main(String[] args) throws Exception { String config = ValidationProvider.class.getPackage().getName().replace('.', '/') + "/validation-provider.xml"; ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config); context.start();/*from w ww.ja va2s .c om*/ System.in.read(); }
From source file:com.example.customerservice.server.CustomerServiceSpringServer.java
public static void main(String args[]) throws Exception { new ClassPathXmlApplicationContext("server-applicationContext.xml"); System.in.read(); }
From source file:Main.java
public static void main(String[] arg) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); while (true) { String sLine = bf.readLine(); System.out.println("::" + sLine); }/*from w w w . j a v a 2 s . c o m*/ }