摘要:
package cn.jbit.ifdemo; public class Compete2 { public static void main(String[] args) { int mingCi = 1; //名次 switch (mingCi){ case 1: System.out.pri... 阅读全文
摘要:
package test; public class TestCalc { public static void main(String[] args) { System.out.println(6/4); System.out.println(6%4); int i=8; int j=i++ +2; in... 阅读全文
摘要:
package test; public class TestChange { public static void main(String[] args) { int num1=5; int num2=6; System.out.println("交换前:"); System.out.println("num1:"+nu... 阅读全文
摘要:
public class TestConvert { public static void main(String[] args) { int num=9; double dnum=num; int inum=(int)dnum; double num1=9.8; int num2=(int... 阅读全文
摘要:
public class TestType { public static void main(String[] args) { double score = 98.5; String name = "张三"; char sex = '男'; System.out.println("本次考试成绩最高 阅读全文
摘要:
public class HelloWorld{ public static void main(String[] args){ //println()换行 print()不换行 System.out.println("Hello"); System.out.println("World!!!"); 阅读全文