-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathPerson.java
More file actions
35 lines (34 loc) · 711 Bytes
/
Person.java
File metadata and controls
35 lines (34 loc) · 711 Bytes
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
public class Person {
// 年龄
int age;
// int 12323;
// int 11a;
int _1231a;
int $12sdfa;
long l = 10;
// float f = 1.0;
float f1 = 1.0f;
byte b = 127;
// byte c = 128;
byte d = -128;
// byte e = -129;
// int &sdfa;
// int *adf;
// int #SAD;
// int !adf1;
// int @sdfsd;
// int +sdfs;
// int -adf;
// int ;afa;
// int .af;
// int /afad;
public static void main(String[] args) {
Person person = new Person();
person.age = 20;
System.out.println(person.age);
double pi = Math.PI;
float pif = (float) pi;
System.out.println(pi);
System.out.println(pif);
}
}