摘要:
1.String概述:String代表字符串,字符串是由多个字符组成的一串数据(字符序列) ,字符串可以看成是字符数组 注意事项: 1.Java中所有的字符串文字(例如"abc")都被实现为此类的实例(对象),字符串字面值"abc"也可以被成为一个字符串对象 String str = "abc"; 阅读全文
posted @ 2021-10-09 22:08
艺术派大星
阅读(52)
评论(0)
推荐(0)
摘要:
//人抽象类 abstract class Person { private String name; private int age; public Person() { } public Person(String name, int age) { this.name = name; this. 阅读全文
posted @ 2021-10-09 10:00
艺术派大星
阅读(304)
评论(0)
推荐(0)