摘要:
package Class;public class Ca { int a; static int b; public static void m1(){ Ca ca = new Ca(); ca.a = 10; b = 10; } public void m2(){ a = 5; b = 5; } 阅读全文
摘要:
package Class;public class MyPlus { public int plus(int a, int b){ int s; s = a + b; return s; } public int plus(int a ,int b,int c){ int s; s = plus( 阅读全文
摘要:
package operator;public class Demo08 { public static void main(String[] args) { //三元运算符 x ? y : z // 如果 x = true 则 y 否则 z int score = 60; String type 阅读全文
摘要:
package operator;public class Demo07 { public static void main(String[] args) { //字符串连接符 + int a = 10; int b = 20; a += b;//a = a + b System.out.print 阅读全文