Memoryizz

2018年11月23日

java 04 数组

摘要: 数组 类型相同,容器 下标从0开始,以0为基址,查询速度很快 int arr = new int[5] ___________________________________________ class arraydemo1{ public static void main(String[] arg 阅读全文

posted @ 2018-11-23 17:14 Memoryizz 阅读(136) 评论(0) 推荐(0)

java 04 函数的重载

摘要: class functiondemo2{ public static void main(String[] args){ /* int r = add(1,2,5); System.out.println(r); */ System.out.println(add(2,2.0f)); out(1,2 阅读全文

posted @ 2018-11-23 14:53 Memoryizz 阅读(125) 评论(0) 推荐(0)

java 04 函数和递归

摘要: class functiondemo{ public static void main(String[] args){ //调用函数 int red = add(1,2); System.out.println(red); printemtytriangle(5); printemtytriangl 阅读全文

posted @ 2018-11-23 14:03 Memoryizz 阅读(118) 评论(0) 推荐(0)

导航