如果这样呢???怎么更改一下???/**java习题
*homework 1*///HelloWorld3.java 源程序:public class HelloWorld3
{
public static void main(String args[])
{
try
{
System.out.println(args[0]);
}catch(Exception e)
{
System.out.println("Hello,World!");
}
}
}
*homework 1*///HelloWorld3.java 源程序:public class HelloWorld3
{
public static void main(String args[])
{
try
{
System.out.println(args[0]);
}catch(Exception e)
{
System.out.println("Hello,World!");
}
}
}
解决方案 »
- 为什么静态方法中不能用this和super关键字
- java中类的继承问题请教
- 初学java一题,请教!
- Jb2005不能连接SQLserver2000了,换了eclipse也一样,以前都能连的
- 请问如何显示一个很大的阶乘数
- 有没有java的QQ群
- 一个读写文件的问题?
- 菜鸟级环境配置问题
- 能不能在网页中运行Java Application?
- 请问在工作岗位的朋友!使用java开发的公司对c#的态度如何?
- 如何用java实现递归?给n个整数,写出计算结果为24的算法,要所有数都用上,只用加减乘除实现
- 想读到<input type="file" name="ulfile" size="20" maxlength="20">里的值,用request.getParameter("ulfile");方法不行!救我
{
public static void main(String args[])
{
System.out.println("Enter a chacter please:");
try
{
char c = (char)(System.in.read());
System.out.println("The chacter is " + c);
}catch(Exception e)
{
System.out.println("There is a IOException");
}
}
}
public class HelloWorld3
{
public static void main(String args[]) throws IOException
{
System.out.println("Enter a chacter please:");
try
{
System.out.println(args[0]);
BufferedReader keyin = new BufferedReader(new InputStreamReader(System.in));
String x = keyin.readLine();
}catch(Exception e)
{
System.out.println("Hello,World!" + "This is parameter you have enter:" + x);
}
}
}