摘要:
第一、类名要大写(Test); 第二、可以有多个类,但是只能一个是public。import java.util.*;public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double oblength,obheight; Oblong myoblong; System.out.print("please enter the length"); oblength = sc.next... 阅读全文
摘要:
昨天开始看书的,所以找个最简单的AC下。代码:import java.util.*;// public class abpublic class Main{ public static void main(String[] args) { Scanner sc = new Scanner (System.in); int x,y,result; x = sc.nextInt(); y = sc.nextInt(); result = x + y; System.out.println(result); }} 必须... 阅读全文