摘要:
* java中类,是引用型数据类型; ### 方法一: ``` class Person { String name; int age; public void tell(){ System.out.println("姓名:" + name + ",年龄:" + age); } } public c 阅读全文
posted @ 2023-06-01 16:31
盘思动
阅读(73)
评论(0)
推荐(0)
摘要:
``` public class ImoocStudent { public static void main(String[] args) throws Exception{ int line = 9; for(int i = 1; i <= line;i++){ for(int k = 0;k 阅读全文
posted @ 2023-06-01 14:26
盘思动
阅读(20)
评论(0)
推荐(0)
摘要:
* && 短路与判断 ``` public class ImoocStudent { public static void main(String[] args) throws Exception{ if(1 > 2 && 10/0 == 0)// 执行报错,0不能作为分母 { System.out 阅读全文
posted @ 2023-06-01 11:19
盘思动
阅读(19)
评论(0)
推荐(0)