ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
JAVA SE Lesson 20



1. ¿Í»§¶ËÓë·þÎñÆ÷¶ËÖ®¼äµÄͨÐÅÈ«²¿²ÉÓà XML ʵÏÖ£º

1£©   Óû§µÇ¼£¨type=1£©
                £º

<?xml version="1.0" encoding="utf-8"?>

<message>

   <type>1</type>

   <user>zhangsan</user>

</message>

2£©   ·þÎñÆ÷¶ËÏòËùÓпͻ§¶Ë·¢Ë͵ÄÔÚÏßÓû§ÁÐ±í£¨type=4£©
                               £º

<?xml version="1.0" encoding="utf-8"?>

<message>

   <type>4</type>

   <user>zhangsan</user>

   <user>lisi</user>

   <user>wangwu</user>

</message>

More Related Content

Viewers also liked (15)

2008 PGSAS G-nomes
2008 PGSAS G-nomes2008 PGSAS G-nomes
2008 PGSAS G-nomes
gfb1
?
Consejos Pr¨¢cticos Directivos - Inicio a ClasesConsejos Pr¨¢cticos Directivos - Inicio a Clases
Consejos Pr¨¢cticos Directivos - Inicio a Clases
SubseEducGye
?
Pythagorean blog post
Pythagorean blog postPythagorean blog post
Pythagorean blog post
landonwhite
?
La paz contada a las ni?as y a los ni?osLa paz contada a las ni?as y a los ni?os
La paz contada a las ni?as y a los ni?os
javierdanilo
?
The potential of partnerships: the Oxfam ¨C Monash research partnership
The potential of partnerships: the Oxfam ¨C Monash research partnershipThe potential of partnerships: the Oxfam ¨C Monash research partnership
The potential of partnerships: the Oxfam ¨C Monash research partnership
Compass: Women's and Children's Health Knowledge Hub
?
Ejercicio resuelto: Integral definidaEjercicio resuelto: Integral definida
Ejercicio resuelto: Integral definida
hkviktor (HKV)
?
St notes 12_rev
St notes 12_revSt notes 12_rev
St notes 12_rev
hmfowler
?
A szakdolgozat elm¨¦let
A szakdolgozat elm¨¦letA szakdolgozat elm¨¦let
A szakdolgozat elm¨¦let
frigyikdora
?
Narration
NarrationNarration
Narration
professor_g
?
I am rotating rrrrrrr
I am rotating rrrrrrrI am rotating rrrrrrr
I am rotating rrrrrrr
ryshawn1
?
PowerpointPresentationFrench
PowerpointPresentationFrenchPowerpointPresentationFrench
PowerpointPresentationFrench
Nicholas Roy
?
CREAR ENCUESTAS EN GOOGLECREAR ENCUESTAS EN GOOGLE
CREAR ENCUESTAS EN GOOGLE
Jose Manolo Mosquera Congo
?
Natedylan
NatedylanNatedylan
Natedylan
landonwhite
?
2008 PGSAS G-nomes
2008 PGSAS G-nomes2008 PGSAS G-nomes
2008 PGSAS G-nomes
gfb1
?
Consejos Pr¨¢cticos Directivos - Inicio a ClasesConsejos Pr¨¢cticos Directivos - Inicio a Clases
Consejos Pr¨¢cticos Directivos - Inicio a Clases
SubseEducGye
?
Pythagorean blog post
Pythagorean blog postPythagorean blog post
Pythagorean blog post
landonwhite
?
La paz contada a las ni?as y a los ni?osLa paz contada a las ni?as y a los ni?os
La paz contada a las ni?as y a los ni?os
javierdanilo
?
Ejercicio resuelto: Integral definidaEjercicio resuelto: Integral definida
Ejercicio resuelto: Integral definida
hkviktor (HKV)
?
St notes 12_rev
St notes 12_revSt notes 12_rev
St notes 12_rev
hmfowler
?
A szakdolgozat elm¨¦let
A szakdolgozat elm¨¦letA szakdolgozat elm¨¦let
A szakdolgozat elm¨¦let
frigyikdora
?
I am rotating rrrrrrr
I am rotating rrrrrrrI am rotating rrrrrrr
I am rotating rrrrrrr
ryshawn1
?
PowerpointPresentationFrench
PowerpointPresentationFrenchPowerpointPresentationFrench
PowerpointPresentationFrench
Nicholas Roy
?
CREAR ENCUESTAS EN GOOGLECREAR ENCUESTAS EN GOOGLE
CREAR ENCUESTAS EN GOOGLE
Jose Manolo Mosquera Congo
?

More from ArBing Xie (20)

[ʥ˼԰][Java SE]Java se lesson 3
[ʥ˼԰][Java SE]Java se lesson 3[ʥ˼԰][Java SE]Java se lesson 3
[ʥ˼԰][Java SE]Java se lesson 3
ArBing Xie
?
[ʥ˼԰][Java SE]Swing
[ʥ˼԰][Java SE]Swing[ʥ˼԰][Java SE]Swing
[ʥ˼԰][Java SE]Swing
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 15
[ʥ˼԰][Java SE]Java se lesson 15[ʥ˼԰][Java SE]Java se lesson 15
[ʥ˼԰][Java SE]Java se lesson 15
ArBing Xie
?
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
ArBing Xie
?
[ʥ˼԰][Java SE]Strategy
[ʥ˼԰][Java SE]Strategy[ʥ˼԰][Java SE]Strategy
[ʥ˼԰][Java SE]Strategy
ArBing Xie
?
[ʥ˼԰][Java SE]Reflection
[ʥ˼԰][Java SE]Reflection[ʥ˼԰][Java SE]Reflection
[ʥ˼԰][Java SE]Reflection
ArBing Xie
?
[ʥ˼԰][Java SE]OoadÓëuml lesson 2
[ʥ˼԰][Java SE]OoadÓëuml lesson 2[ʥ˼԰][Java SE]OoadÓëuml lesson 2
[ʥ˼԰][Java SE]OoadÓëuml lesson 2
ArBing Xie
?
[ʥ˼԰][Java SE]Observer
[ʥ˼԰][Java SE]Observer[ʥ˼԰][Java SE]Observer
[ʥ˼԰][Java SE]Observer
ArBing Xie
?
[ʥ˼԰][Java SE]Network
[ʥ˼԰][Java SE]Network[ʥ˼԰][Java SE]Network
[ʥ˼԰][Java SE]Network
ArBing Xie
?
[ʥ˼԰][Java SE]Jdk5
[ʥ˼԰][Java SE]Jdk5[ʥ˼԰][Java SE]Jdk5
[ʥ˼԰][Java SE]Jdk5
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 22
[ʥ˼԰][Java SE]Java se lesson 22[ʥ˼԰][Java SE]Java se lesson 22
[ʥ˼԰][Java SE]Java se lesson 22
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 17
[ʥ˼԰][Java SE]Java se lesson 17[ʥ˼԰][Java SE]Java se lesson 17
[ʥ˼԰][Java SE]Java se lesson 17
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 16
[ʥ˼԰][Java SE]Java se lesson 16[ʥ˼԰][Java SE]Java se lesson 16
[ʥ˼԰][Java SE]Java se lesson 16
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 13
[ʥ˼԰][Java SE]Java se lesson 13[ʥ˼԰][Java SE]Java se lesson 13
[ʥ˼԰][Java SE]Java se lesson 13
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 12
[ʥ˼԰][Java SE]Java se lesson 12[ʥ˼԰][Java SE]Java se lesson 12
[ʥ˼԰][Java SE]Java se lesson 12
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 11
[ʥ˼԰][Java SE]Java se lesson 11[ʥ˼԰][Java SE]Java se lesson 11
[ʥ˼԰][Java SE]Java se lesson 11
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 10
[ʥ˼԰][Java SE]Java se lesson 10[ʥ˼԰][Java SE]Java se lesson 10
[ʥ˼԰][Java SE]Java se lesson 10
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 9
[ʥ˼԰][Java SE]Java se lesson 9[ʥ˼԰][Java SE]Java se lesson 9
[ʥ˼԰][Java SE]Java se lesson 9
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 8
[ʥ˼԰][Java SE]Java se lesson 8[ʥ˼԰][Java SE]Java se lesson 8
[ʥ˼԰][Java SE]Java se lesson 8
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 5
[ʥ˼԰][Java SE]Java se lesson 5[ʥ˼԰][Java SE]Java se lesson 5
[ʥ˼԰][Java SE]Java se lesson 5
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 3
[ʥ˼԰][Java SE]Java se lesson 3[ʥ˼԰][Java SE]Java se lesson 3
[ʥ˼԰][Java SE]Java se lesson 3
ArBing Xie
?
[ʥ˼԰][Java SE]Swing
[ʥ˼԰][Java SE]Swing[ʥ˼԰][Java SE]Swing
[ʥ˼԰][Java SE]Swing
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 15
[ʥ˼԰][Java SE]Java se lesson 15[ʥ˼԰][Java SE]Java se lesson 15
[ʥ˼԰][Java SE]Java se lesson 15
ArBing Xie
?
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
[ʥ˼԰][Java SE]Websphere.application.developer(wsad)ʹÓÃÍâÖÃwin cvs½â¾ö·½°¸
ArBing Xie
?
[ʥ˼԰][Java SE]Strategy
[ʥ˼԰][Java SE]Strategy[ʥ˼԰][Java SE]Strategy
[ʥ˼԰][Java SE]Strategy
ArBing Xie
?
[ʥ˼԰][Java SE]Reflection
[ʥ˼԰][Java SE]Reflection[ʥ˼԰][Java SE]Reflection
[ʥ˼԰][Java SE]Reflection
ArBing Xie
?
[ʥ˼԰][Java SE]OoadÓëuml lesson 2
[ʥ˼԰][Java SE]OoadÓëuml lesson 2[ʥ˼԰][Java SE]OoadÓëuml lesson 2
[ʥ˼԰][Java SE]OoadÓëuml lesson 2
ArBing Xie
?
[ʥ˼԰][Java SE]Observer
[ʥ˼԰][Java SE]Observer[ʥ˼԰][Java SE]Observer
[ʥ˼԰][Java SE]Observer
ArBing Xie
?
[ʥ˼԰][Java SE]Network
[ʥ˼԰][Java SE]Network[ʥ˼԰][Java SE]Network
[ʥ˼԰][Java SE]Network
ArBing Xie
?
[ʥ˼԰][Java SE]Jdk5
[ʥ˼԰][Java SE]Jdk5[ʥ˼԰][Java SE]Jdk5
[ʥ˼԰][Java SE]Jdk5
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 22
[ʥ˼԰][Java SE]Java se lesson 22[ʥ˼԰][Java SE]Java se lesson 22
[ʥ˼԰][Java SE]Java se lesson 22
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 17
[ʥ˼԰][Java SE]Java se lesson 17[ʥ˼԰][Java SE]Java se lesson 17
[ʥ˼԰][Java SE]Java se lesson 17
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 16
[ʥ˼԰][Java SE]Java se lesson 16[ʥ˼԰][Java SE]Java se lesson 16
[ʥ˼԰][Java SE]Java se lesson 16
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 13
[ʥ˼԰][Java SE]Java se lesson 13[ʥ˼԰][Java SE]Java se lesson 13
[ʥ˼԰][Java SE]Java se lesson 13
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 12
[ʥ˼԰][Java SE]Java se lesson 12[ʥ˼԰][Java SE]Java se lesson 12
[ʥ˼԰][Java SE]Java se lesson 12
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 11
[ʥ˼԰][Java SE]Java se lesson 11[ʥ˼԰][Java SE]Java se lesson 11
[ʥ˼԰][Java SE]Java se lesson 11
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 10
[ʥ˼԰][Java SE]Java se lesson 10[ʥ˼԰][Java SE]Java se lesson 10
[ʥ˼԰][Java SE]Java se lesson 10
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 9
[ʥ˼԰][Java SE]Java se lesson 9[ʥ˼԰][Java SE]Java se lesson 9
[ʥ˼԰][Java SE]Java se lesson 9
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 8
[ʥ˼԰][Java SE]Java se lesson 8[ʥ˼԰][Java SE]Java se lesson 8
[ʥ˼԰][Java SE]Java se lesson 8
ArBing Xie
?
[ʥ˼԰][Java SE]Java se lesson 5
[ʥ˼԰][Java SE]Java se lesson 5[ʥ˼԰][Java SE]Java se lesson 5
[ʥ˼԰][Java SE]Java se lesson 5
ArBing Xie
?

Recently uploaded (6)

°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
kaozytf
?
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
David vonThenen
?
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀíÆ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
kaozytf
?
Build_With_AI_2025 Gemini 2.0 New Function
Build_With_AI_2025  Gemini 2.0 New FunctionBuild_With_AI_2025  Gemini 2.0 New Function
Build_With_AI_2025 Gemini 2.0 New Function
kevinchiu59
?
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
RayChan91
?
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
David vonThenen
?
°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
°¢²®¶¡´óѧ±ÏÒµÖ¤(±«´Ç´¡Ñ§Î»Ö¤Ñ§ÀúÈÏÖ¤¹úÍâÁôѧ)°ìÀí
kaozytf
?
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
2025 DeveloperWeek - The Sound of Innovation: Why Voice Cloning Will Redefine...
David vonThenen
?
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀíÆ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
Æ¥×ȱ¤´óѧ±ÏÒµÖ¤(±Ê±õ°Õ°Õѧλ֤·¶±¾±ÏÒµÖ¤Êé)°ìÀí
kaozytf
?
Build_With_AI_2025 Gemini 2.0 New Function
Build_With_AI_2025  Gemini 2.0 New FunctionBuild_With_AI_2025  Gemini 2.0 New Function
Build_With_AI_2025 Gemini 2.0 New Function
kevinchiu59
?
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
Cantonmade 2025 Hotel Supplier Catalog: Technical Specs for Engineers & Integ...
RayChan91
?
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
2025 NVIDIA GTC: Crack the AI Black Box: Practical Techniques for Explainable AI
David vonThenen
?

[ʥ˼԰][Java SE]Java se lesson 20

  • 1. JAVA SE Lesson 20 1. ¿Í»§¶ËÓë·þÎñÆ÷¶ËÖ®¼äµÄͨÐÅÈ«²¿²ÉÓà XML ʵÏÖ£º 1£© Óû§µÇ¼£¨type=1£© £º <?xml version="1.0" encoding="utf-8"?> <message> <type>1</type> <user>zhangsan</user> </message> 2£© ·þÎñÆ÷¶ËÏòËùÓпͻ§¶Ë·¢Ë͵ÄÔÚÏßÓû§ÁÐ±í£¨type=4£© £º <?xml version="1.0" encoding="utf-8"?> <message> <type>4</type> <user>zhangsan</user> <user>lisi</user> <user>wangwu</user> </message>