摘要:
导入包 一般利用公司域名导致作为包名,www.eclipse.com import java.util.base.demon01; import com.kuang.base.;通配符,.""表示可以将包中所有的信息导入 阅读全文
posted @ 2025-03-18 21:52
骆驼刺破仙人掌007
阅读(10)
评论(0)
推荐(0)
摘要:
//面试题 int a1=10;int b1=20; System.out.println(" "+a1+b1);//字符串在前,则相连 System.out.println(a1+b1+" ");//字符串在后面,则加减运算 //条件运算符?: int score=90; String type= 阅读全文
posted @ 2025-03-18 20:59
骆驼刺破仙人掌007
阅读(4)
评论(0)
推荐(0)
摘要:
//位运算 //a=1100,b=1010,a&b=1000,全1为1,其余为0 //a=1100,b=1010,a|b=1110,全0为0,其余为1 //a=1100,b=1010,a^b=0110,相同为0,不同为1 //a=1100,b=1010,b=0101,a=0011,按位取反 阅读全文
posted @ 2025-03-18 20:37
骆驼刺破仙人掌007
阅读(12)
评论(0)
推荐(0)
摘要:
public class Demo2 { public static void main(String[] args) { // TODO Auto-generated method stub //逻辑运算符 boolean a=true; boolean b=false; System.out.p 阅读全文
posted @ 2025-03-18 20:23
骆驼刺破仙人掌007
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号