FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
excel_pdf/JavaTPCProject/src/Project01_B.java at master · TypeP/excel_pdf · GitHub
TypeP
excel_pdf
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
excel_pdf
/
JavaTPCProject
/
src
/
Project01_B.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (23 loc) · 786 Bytes
Breadcrumbs
excel_pdf
/
JavaTPCProject
/
src
/
Project01_B.java
Copy path
File metadata and controls
34 lines (23 loc) · 786 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
org
.
json
.
JSONArray
;
import
org
.
json
.
JSONObject
;
public
class
Project01_B
{
public
static
void
main
(
String
[]
args
) {
// JSON-Java(org.json)
JSONArray
students
=
new
JSONArray
();
JSONObject
student
=
new
JSONObject
();
student
.
put
(
"name"
,
"홍길동"
);
student
.
put
(
"phone"
,
"010-1111-1111"
);
student
.
put
(
"address"
,
"서울"
);
System
.
out
.
println
(
student
);
students
.
put
(
student
);
student
=
new
JSONObject
();
student
.
put
(
"name"
,
"나길동"
);
student
.
put
(
"phone"
,
"010-2222-2222"
);
student
.
put
(
"address"
,
"광주"
);
students
.
put
(
student
);
JSONObject
object
=
new
JSONObject
();
object
.
put
(
"students"
,
students
);
System
.
out
.
println
(
"students"
+
students
);
System
.
out
.
println
(
object
.
toString
(
2
));
}
}
Back
|
FazBrowse Home
|
New Git URL