package cn.itcast;
import java.util.Date;
/**
* 使用eclipse完成99乘法表代码
*
*/
public class Demo3 {
public static final int e = 10;
//public int a = 10;
protected String b = "20";
int c = 20;
private int d = 30;
public int getD() {
return d;
}
public void setD(int d) {
this.d = d;
}
public static int method5(){
return 0;
}
public void method2(){
}
protected static void method3(){}
void method4(){
Date date = new Date();
int a = 10;
//Integer s = new Integer(a);
String hexString = Integer.toHexString(a);
System.out.println(hexString);
Demo3 demo3 = new Demo3();
System.out.println(a);
method();
b = "100";
}
private void method(){}
public static void main(String[] args) {
for (int i = 0; i < 100000; i++) {
System.out.println(i);
}
int i = 1;
for(;i<=9;i++)
{
for(int x = 1;x<=i;x++)
{
System.out.print(x+"*"+i+"="+x*i+"\t");
}
System.out.println();
}
}
public static int method10(int a,int b){
return a>b?a:b;
}
@Override
public String toString() {
return "Demo3 [b=" + b + ", c=" + c + ", d=" + d + "]";
}
}
|
|