-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCatTest.java
More file actions
22 lines (21 loc) · 783 Bytes
/
CatTest.java
File metadata and controls
22 lines (21 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class CatTest {
public static void main(String[] args) {
// 자동차의 정보를 저장 하려고 한다 변수를 만들어 보시요
String model="BMW528i";
System.out.println("model = "+model);
long distance=1000000;
System.out.println("distance = "+distance+"km");
int price=9000000;
System.out.println("price = " +price);
String company="BMW";
System.out.println("company = " + company);
char type='A';
System.out.println("type = " +type+"Type");
boolean auto=true;
System.out.println("auto = " + auto);
int year=2000;
System.out.println("year = " + year);
float gasmi=12.5f;
System.out.println("gasmi = " +gasmi+"l");
}
}