摘要: public class shuzu05{ //编写一个main方法 public static void main(String[] args){ //请求出一个数组int[]的最大值{4,-1,9,10,23},并得到对应的下标 //思路分析 //1.定义一个int 数组 int[] arr = 阅读全文
posted @ 2024-07-28 08:39 勤奋的小番茄 阅读(5) 评论(0) 推荐(0) 编辑
摘要: public class shuzu03{ //编写一个main方法 public static void main(String[] args){ /* 创建一个char类型的26个元素的数组,分别放置'A'-'Z'。 使用for循环访问所有元素并打印出来。 提示:char类型数据运算'A' + 阅读全文
posted @ 2024-07-28 08:04 勤奋的小番茄 阅读(29) 评论(0) 推荐(0) 编辑