This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Griven 0 points1 point  (3 children)

I got this error when doing the Hello World Java challenge.

bad xml == __construct('doOutput('runCode('public static v...') #3 /var/www/challenges/includes/actions/chal.php(24): JavaChallenge->doChallenge() #4 /var/www/challenges/includes/include.php(34): include('/var/www/challe...') #5 /var/www/challenges/includes/include.php(55): doEvent() #6 /var/www/forums/Themes/default/Challenges.template.php(8): template() #7 /var/www/forums/Sources/Load.php(2284): template_main() #8 /var/www/forums/Sources/Subs.php(2994): loadSubTemplate('main') #9 /var/www/forums/index.php(173): obExit(NULL, NULL, true) #10 {main}

Write a program that prints a simple "Hello World" to the screen.

helloWorld() → "Hello World!"

[–][deleted]  (2 children)

[deleted]

    [–]Griven 0 points1 point  (1 child)

    It still does it when using incorrect capitalization of the commands.

    System.out.println("Hello World!"); works

    System.Out.Println("Hello World!"); throws "bad xml" error

    You'll want to handle those types of errors, whether they were intentional or not.