用于发布和使用类库
作为应用程序和扩展的构建单元
作为组件、applet 或者插件程序的部署单位
用于打包与组件相关联的辅助资源
1 package Com.Table; 2 import java.util.Scanner; 3 public class TwoTable { 4 5 /** 6 * 从键盘上输入3个数,求出这三个数字中的最大值,并将最大值输出 7 */ 8 9 public static void main(String[] args) { 10 System.out.println("input Three number:"); 11 Scanner scanner = new Scanner(System.in); 12 int nNumA = scanner.nextInt(); 13 int nNumB = scanner.nextInt(); 14 int nNumC = scanner.nextInt(); 15 16 int nMax = 0; 17 if (nNumA >= nNumB && nNumA >= nNumC) 18 { 19 nMax = nNumA; 20 } 21 else if (nNumB >= nNumC && nNumB >= nNumA) 22 { 23 nMax = nNumB; 24 } 25 else if (nNumC >= nNumA && nNumC >= nNumB) 26 { 27 nMax = nNumC; 28 } 29 else 30 { 31 System.out.println("error!"); 32 } 33 System.out.println("Max = " + nMax); 34 } 35 }
原文:https://www.cnblogs.com/borter/p/9383797.html