Ask your own question, for FREE!
Computer Science 19 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!
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!