用于发布和使用类库
作为应用程序和扩展的构建单元
作为组件、applet 或者插件程序的部署单位
用于打包与组件相关联的辅助资源
package Com.Table;
import java.util.Scanner;
public class TwoTable { /**
* 从键盘上输入3个数,求出这三个数字中的最大值,并将最大值输出
*/ public static void main(String[] args) {
System.out.println("input Three number:");
Scanner scanner = new Scanner(System.in);
int NumA = scanner.nextInt();
int NumB = scanner.nextInt();
int NumC = scanner.nextInt(); int Max = 0;
if (NumA >= NumB && NumA >= NumC)
{
Max = NumA;
}
else if (NumB >= NumC && NumB >= NumA)
{
Max = NumB;
}
else if (NumC >= NumA && NumC >= NumB)
{
Max = NumC;
}
else
{
System.out.println("error!");
}
System.out.println("Max = " + Max);
}
}