Ask your own question, for FREE!
Computer Science 33 Online
OpenStudy (tansheet):

Parse the given HTML/XML code in java according to the output. Input =

hello

world

Output = html – level 0 – N/A Body – level 1 – N/A P – level 2 – hello Swap – level 2 – N/A P – level 3 – world

OpenStudy (rsmith6559):

You need the Scanner class to break up the input and then you'll be creating nodes in a tree with the tokens.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
cullenn: short story! (will post in a comment)
1 day ago 3 Replies 1 Medal
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!