还要判断一下是否输入的连个数符合条件
比如都应该大于0
另外还要在开始时候把EDGE2也清0
而且你确定输入的是两个直角边吗
比如都应该大于0
另外还要在开始时候把EDGE2也清0
而且你确定输入的是两个直角边吗
解决方案 »
- 话说还有人使用jrockit 虚拟机吗,和现在的JDK比起来 还有优势
- resourceBundle.getStringArray() throws ClassCastException why? help me, thank you!
- java的线程的setDaemon()
- 报错Package with uri 'null' not found
- 数组错误
- 100分求解决JTable问题!
- ▲▲▲关注GUI开发的朋友请进▲▲▲
- 好久没来了先散点分:)
- 请问各位,我在applet中panel上面生成的图像怎么取下来啊!?生成一个image实例!
- 小问题!!帮助!!!
- 多文件的编译
- 把分献给回答问题最清楚的那个人(对于你来说,可能超级简单)
import java.io.*;
class tangle{
int edge1=0;
public static void main(String args[])throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Input the first side");
int edge1=Integer.parseInt(br.readLine());
System.out.println("the first edge is"+edge1);
System.out.println("Input the secondside");
int edge2=Integer.parseInt(br.readLine());
System.out.println("the first edge is"+edge2);
}
}
我做成了勾股定理import java.lang.System.*;
import java.io.*;
class tangle{
int edge1=0;
public static void main(String args[])throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Input the first side");
int edge1=Integer.parseInt(br.readLine());
System.out.println("the first edge is"+edge1);
System.out.println("Input the secondside");
int edge2=Integer.parseInt(br.readLine());
System.out.println("the first edge is"+edge2);
}
}
关注!!!!!!!!!!!!!!!!!!!!!!!!!!1