CodeGym /Courses /Java Collections /Tasks | Level 3 | Lesson 10

Tasks | Level 3 | Lesson 10

Java Collections
Level 3, Lesson 10
Available
14
Task
Java Collections, level 3, lesson 10
Locked
Creating a class from an XML string
Creating a class from an XML string
28
Task
Java Collections, level 3, lesson 10
Locked
Comments inside XML
Comments inside XML
Comments (8)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Hoist Level 1, San Diego, United States
11 January 2024
Output Shop{goods=Goods{names=[S1, S2]}, count=12, profit=123.4, secretData=[String1, String2, String3, String4, String5]}
BlueJavaBanana Level 37
14 February 2021
I'd love to know how people are solving some of these problems without dedicating a week plus to researching. Even after plenty of research it still isn't even clear if the method you chose to solve is the one code gym is after.
Ibrahim Level 24, Sheffield, United Kingdom
12 July 2022
If I don't solve it in 20-30 minutes then I just look at the solution. There is no point in wasting more time.
Thomas Level 41, Bayreuth, Germany
27 March 2023
For Java there isn't to much info about the document tree. But if you learn some Javascript basics then working with the document tree is what you do most of the time. Means after that you'll already know the concepts and just have to look up matching methods on the Java side.
Hoist Level 1, San Diego, United States
11 January 2024
I have been with Codegym since 2019 and I would constructively echo that this comment from -- @ibrahim --is the only way to sanely complete 1200 tasks (faster) -- and learn. Beyond Syntax gets increasingly difficult / lengthly (to earn dark matter) and I think reflects on the Advanced level of the super smart curriculum developers. That's is a huge compliment btw ! The Core path is too long and too difficult -- look at the drop out rates and total whom finish to level 40 or 50? I love Codegym ( I have done 2 passes thru ) and think the Levels need to split off at Core into Advanced and Novice thru Intermediate. The Games are great ! Tetris is too long but great ! The Mines Game is just right ! I am also proficient in php - javascript - C++ and C# / Web Dev with long hardcore semiconductor and software work history. Great platform and the Forums and peer comments are worth the Admission ) all the best
季军 Level 38, Shanghai, China
16 August 2019
Don't write your own parser for "Comments inside XML", use the parser in the xml package to parse the xml and use utilities in org.w3c.dom to insert comment.
Alexandre Lalancette Level 41, Quebec, Canada
4 February 2020
How did you do it? Didn't pass with the dom parser and my own parser
Juan Ma Level 1, Arauca, Colombia
31 May 2020
You can do it with regex using look ahead (?=regex).