- 博客(7)
- 收藏
- 关注
原创 学习心得体会
System.out.println("集合中的元素有:" + collection);System.out.println("集合中的元素有:" + collection);System.out.println("list的集合:" + list);System.out.println("子集合的元素" + list2);System.out.println("list集合:" + list);System.out.println("子集合的元素" + list3);
2024-01-29 18:19:00
1420
原创 学习心得总结
/两字符串长度不一,参与比较的两个字符串如果首字符相同,则比较下一个字符,直到有不同的为止,返回该不同的字符的asc码差值。//方法返回字符串中指定索引之前的字符的Unicode值。//追加字符串append。//返回字符串指定位置的字符。System.out.println("长度为:" + sb1.length());//返回字符串字符序列的长度。
2024-01-26 18:58:21
922
1
原创 学习心得总结
packageDemo0124;PhoneStringbrand;Doubleprice;show(){Systemout.println(品牌:"brand",价格:"pricemainString[] args) {newPhone();phone.show();phonebrand"Nokia";phoneprice598.5;phone.show();
2024-01-25 15:09:15
429
1
原创 学习心得总结
/提示用户输入一个数字System.out.println("请输入一个数:");//使用三目运算符对用户输入的数字进行判断"你输入的是一个正数": number == 0?"你输入的是0":"你输入的是负数";System.out.println("请输入你的身份信息:(军人,学生,还是普通人)");Stringidentifyif("军人".equals(identify)) {
2024-01-23 18:56:46
1149
1
原创 学习心得总结
System.out.println("张程,软件工程,有志者 事竟成");System.out.println("家人,你的电脑将于3秒后关机");//String 姓名 = "杨智其";//1.由数字、字母、下划线、$组成,不能以数字开头。//System.out.println(姓名);//4.尽量做到见名知意,支持中文,但不推荐。//3.不能使用Java的关键字和保留字。shutdown -s -f -t 秒 #定时强制关机。//2.变量名长度没有限制,但不宜过长。2.变量使用之前必须先初始化。
2024-01-22 18:13:05
342
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅