10.18
摘要:package tes; import java.util.Scanner; public class Demo1 { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); System.ou
阅读全文
10.15
摘要:public class Car { private String brand; private double power; public Car(){ } public Car(String brand,double power){ this.brand=brand; this.power=pow
阅读全文
10.14
摘要:package com.hp.zhang; import com.sun.xml.internal.fastinfoset.tools.XML_SAX_StAX_FI; public class test1 { public static void main(String[] args) { dou
阅读全文
10-13
摘要:public class yuju { public static void main(String[] args) { int [] a={1,2,3,4,5,6,7,8,9,22}; int b=0; int c=0; for (int i = 0; i < a.length; i++) { b
阅读全文
10.11
摘要:第一题:1.定义一个HelloWold类2.在类中定义主方法3.在主方法中使用输出语句在dos控制台打印HelloWorld 打印结果如:HelloWorld4.在案例中使用当行注释、多行注释添加相关的说明信息答:package com.hp.www; public class HelloWord
阅读全文
10.12
摘要:第一题: 看程序说答案 int a = 10; int b = 3; int c = a + b; //c=13 int d = a - b; //d=7 int e = a * b; //e=30 int f = a / b; //f=3 int g = a % b; //g=1 a++; //1
阅读全文