标签:支持 选择 ble ring 之一 ext static import main
JAVA平台由于在手机上广泛应用,使得扩展名为jar的游戏成为目前手机游戏市场上最大的家族,直接传入手机直接安装即可。
众所周知,JAVA是一种跨平台的程序设计语言。由于其高可移植性、简单、可靠、安全等诸多优异性能,现在已经成为最受欢迎、最有影响力的编程语言之一。
JAVA程序的短小精干和其跨平台的先天特点,使其成为众多开放或半开放式手机扩展自身功能的最佳选择。因此现在市场上流行的手机大多支持JAVA应用程序了。
1 package Com.Table; 2 import java.util.Scanner; 3 4 //编写万年历小程序 5 public class ThreeTable { 6 7 public static void main(String[] args) { 8 System.out.println("请输入年:"); 9 Scanner scanner = new Scanner(System.in); 10 int nYear = scanner.nextInt(); 11 System.out.println("请输入月:"); 12 int nMounth = scanner.nextInt(); 13 int nflag = 0; 14 if (nYear % 4 == 0) 15 { 16 if (nYear % 100 == 0) 17 { 18 if (nYear % 400 == 0) 19 { 20 nflag = 1; 21 System.out.println(nYear + "年是润年"); 22 } 23 else 24 { 25 System.out.println(nYear + "年不是润年"); 26 } 27 } 28 else 29 { 30 nflag = 1; 31 System.out.println(nYear + "年不是润年"); 32 } 33 } 34 else 35 { 36 System.out.println(nYear + "年不是润年"); 37 } 38 39 //判断2016年月份的天数 40 if (nMounth == 1 41 || nMounth == 3 42 || nMounth == 5 43 || nMounth == 7 44 || nMounth == 8 45 || nMounth == 10 46 || nMounth == 12 ) 47 { 48 System.out.println(nYear + "年" + nMounth + "月份的天数是:31" ); 49 } 50 else if (nMounth == 4 51 || nMounth == 6 52 || nMounth == 9 53 || nMounth == 11) 54 { 55 System.out.println(nYear + "年" + nMounth + "月份的天数是:30" ); 56 } 57 else 58 { 59 if (nflag == 0) 60 { 61 System.out.println(nYear + "年" + nMounth + "月份的天数是:28" ); 62 } 63 else 64 { 65 System.out.println(nYear + "年" + nMounth + "月份的天数是:29" ); 66 } 67 } 68 } 69 } 70 71
标签:支持 选择 ble ring 之一 ext static import main
原文地址:https://www.cnblogs.com/borter/p/9383816.html