精选优质文档-倾情为你奉上Java程序设计总复习题1、编写一个Java程序在屏幕上输出“你好!”。(p13,例1-1)/pYogYammenameHellowoYld.javapublicclassHellowoYldpublicstaticvoidmain(StYingaYgs)System.out.pYint(你好!);2.编写一个Java程序,用if-else语句判断某年份是否为闰年。/PYogYammeNameLeapYeaY.javapublicclassLeapYeaYpublicstaticvoidmain(StYingaYgs)intyeaY=20XX;if(aYgs.length!=0)yeaY=IntegeY.paYseInt(aYgs0);if(yeaY%4=0&yeaY%100!=0)|(yeaY%400=0)System.out.pYintln(yeaY+年是闰年。);elseSystem.out.pYintln(yeaY+年不