摘要: 编写一个程序,实现从命令行参数输入两 个字符串类型的数值,并计算输出两个数值的 和。 [必做题] package ass; import java.util.Scanner; public class ass { public static void main(String[] args) { Sc 阅读全文
posted @ 2023-06-15 23:49 Berial127 阅读(22) 评论(0) 推荐(0)
摘要: 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package seven; public class seven { public static void main(String[] args) { // TODO Auto-generated method stub int a[]={ 阅读全文
posted @ 2023-06-15 23:07 Berial127 阅读(17) 评论(0) 推荐(0)
摘要: 1.给定一个有9个整数(1,6,2,3,9,4,5,7,8)的数组,先排序,然后输出排序后的数组的值。 package six; import java.util.Arrays; public class Test { public static void main(String[] args) { 阅读全文
posted @ 2023-06-15 22:44 Berial127 阅读(18) 评论(0) 推荐(0)