摘要:
package com.hanqi; public class UseCase2 { public void doSomething(){ System.out.println("父类.doSomething()"); } public void doAnything(){ System.out.p 阅读全文
摘要:
package org.zuoye .; public class Human { private String name; private String sex; private int age; public String getName() { return name; } public vo 阅读全文
摘要:
public class Area{ private int length; private int width; public Area(int length,int width){ this.length=length; this.width=width; } public int getAre 阅读全文
摘要:
a.编写程序,使用循环控制语句计算“1+2+3+。。。。+100"的值。 public class Exercise7_1 { public static void main( String[] args ) { int sum = 0; // 累加计算 for( int i=1; i<101; + 阅读全文