赞助
摘要: 概念:一组连续的存储空间,存储多个相同数据类型的值 特点:类型相同,长度固定 数组的创建: pubilc class Test{ pubilc static void main(String[] args){ 声明int数组类型变量,定义变量名为a ,分配长度为5的连续空间 int[] a = ne 阅读全文
posted @ 2022-04-10 20:05 Tsunami黄嵩粟 阅读(45) 评论(0) 推荐(0)
摘要: 定义语法: pubilc static 返回值类型 函数名称(形式参数列表){ //函数主体 return value ;//返回值 } 阅读全文
posted @ 2022-04-10 18:33 Tsunami黄嵩粟 阅读(56) 评论(0) 推荐(0)
摘要: public class Test{ public static void main(String[] args){ //String 引用数据类型,对象类对象 //String 特殊性,常量 String s1 = ‘abc’ String s2 = ‘abc' String s3 = new S 阅读全文
posted @ 2022-04-10 17:31 Tsunami黄嵩粟 阅读(75) 评论(0) 推荐(0)
摘要: 定于语法: pubilc static void 函数名称(){ //函数主体 } 函数定义在类的内部,与main函数并列 形参与实参 阅读全文
posted @ 2022-04-10 17:13 Tsunami黄嵩粟 阅读(24) 评论(0) 推荐(0)