import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class RunTest {
public static void main(String[] args) throws IOException {
while(true){
System.out.println("There are three choice :1 2 3");
System.out.println("Please Enter your choice:");
BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
String name = br.readLine();
if( "1".equals(name)){
System.out.println("Your choice is 1");
}
if ("2".equals(name))
{
System.out.println("Your choice is 2");
}
if ("3".equals(name))
{
System.out.println("Your choice is 3");
}
}
}
}
分享到:
相关推荐
J2SE for Loop循环 增强for循环 Enhanced for Loop 更简单的进行遍历
java program for reverse number loop
Carrier loop architectures for tracking weak GPS signals.pdf, The performance of various carrier recovery loop architectures (phase lock loop (PLL), Doppler-aided PLL, frequency lock loop (FLL), and ...
Java for循环 使用for循环显示结果 这是此尝试的输出。
java reverse number loop_java_javascript_源码.zip
java代码-BreakLoop
LoopList.java
java-HashMap-loop
Java REPL是一个Java语言读入-求值-打印-循环(Read-Eval-Print-Loop)功能实现
本文举一个简单的例子来比较一些通过For..Loop读取游标和Open..Close的区别。
The Design of closed loop controllers for wind turbines
closed_loop_control_system_for_stepping_motor.slx最新
主要介绍了Java for循环Map集合优化实现解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
Oracle用三种循环方法输出乘法表,比如loop的用法: m := 1; loop n := 1; loop dbms_output.put(m||'*'||n||'='||m*n||' '); n := n + 1; exit when n > m; end loop; dbms_output.put_line(''); ...
这个文件是约翰霍普金斯在coursera上的数据分析课程上的,有关loop的讲课视频。内容简单易懂,适合初学者,在学习之余还可以作为口语听力练习的资料。
it is for loop assignment in matlab.
Write a Java program called AverageNumbers2.java that calculates the average of numbers 1 to 50 using the for loop. Do it again using the while loop. Output: average of numbers is 25.5
Java-Game-Loop-Fun java中的简单游戏循环,有一些绘图和简单的AI代码。
Human-in-the-Loop Machine Learning lays out methods for humans and machines to work together effectively. Summary Most machine learning systems that are deployed in the world today learn from human ...