摘要:
一. 动手动脑1 1. 代码: public class PassArray { public static void main(String[] args) { int a[] = { 1, 2, 3, 4, 5 }; String output = "The values of the orig 阅读全文
摘要:
一。SquareInt.java public class SquareInt { public static void main(String[] args) { int result; for (int x = 1; x <= 10; x++) { result = square(x); // 阅读全文
摘要:
一。设计思想: 1.读入类型为String的参数,并且进行显示; 2.然后进行强制类型转化,将String类型转化为int类型; 3.然后各个参数相加; 4.输出最后的结果; 二。流程图: 三。源代码: package demo; public class sum { /** * @param ar 阅读全文