-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhoneTest.java
More file actions
61 lines (51 loc) · 1.13 KB
/
Copy pathPhoneTest.java
File metadata and controls
61 lines (51 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
class Phone{
private String brand;
private int price;
private String color;
public static String network = "cdm2000";
public Phone(){
System.out.println("this is ÎÒµÄ ¹¹Ôì·½·¨");
}
public String getBrand(){
return brand;
}
public int getPrice(){
return price;
}
public String getColor(){
return color;
}
public void setBrand(String brand){
this.brand = brand;
}
public void setPrice(int price){
this.price = price;
}
public void setColor(String color){
this.color = color;
}
public void show(){
System.out.println(this.brand);
System.out.println(price);
System.out.println(this.color);
}
}
public class PhoneTest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] arr = {1,2,333};
Phone p = new Phone();
System.out.println(Phone.network);
// p.setBrand("xiaomi");
// p.setColor("red");
// p.setPrice(1999);
// p.show();
ArrayTools.printArray(arr);
int max = ArrayTools.getMax(arr);
System.out.println("max:"+max);
System.out.println("this is test");
}
}