程序闰年public class LeapYearDemopublic static void main(String args)boolean leap;int year = 2005;if(year%4=0) & (year%100!=0) | (year%400=0)System.out.println(year + 年是闰年);elseSystem.out.println(year + 年不是闰年);猜数字import javax.swing.JOptionPane;public class GuessNumberpublic static void main(String args)System.out.println(给你一个1100之间的整数,请猜测这个数);int realNumber = (int)(Math.random()*100);int yourGuess = 0;String str = JOptionPane.showInpu