BufferedReader in = new BufferedReader(new inputStreamReader(System.in));
String s = new String();
String s2 = new String();
while ((s = in.readLine()) != null)
s2 += s + "\n";
in.close();
String s = new String();
String s2 = new String();
while ((s = in.readLine()) != null)
s2 += s + "\n";
in.close();
解决方案 »
- java的从控制台接收数据的程序无法执行完毕(java核心技术上的一个程序)
- 有哪位大哥告诉小妹怎么在同一页面重复使用滑动门效果?
- !!!江湖啊救急啊!!! 用itext真的无法编辑用adobe designer生成的pdf模板文件么?
- 最近在做项目申报系统遇到struts中JavaScript操作问题,大虾解决一下 急用!
- 二进制的异或处理问题
- 请问有人用过JReport吗?
- 請問j2ee中可否向c#那樣輸出個對象
- 有没有工具可以将xml文件导入到数据库表中的
- 关于JAVA 的输入问题
- 新手求救,请在线的朋友帮忙看看,小弟在些先过了!!
- JTree 的90度旋转显示
- 如何对Jtree某一个节点下的内容排序?
{
public static void main(String args[])
{
String num;
num=JOptionPane.showInputDialog("please enter:");
JOptionPane.showMessageDialog(null,"the string is"+" "+num);
System.exit(0);
}
}