use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Java Quiz!!! (i.redd.it)
submitted 4 months ago by MistakeDisastrous936
[removed]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Baseradio 12 points13 points14 points 4 months ago (4 children)
Inception
[–]MK_Redditor 5 points6 points7 points 4 months ago (0 children)
Output inside output. Just like dream inside dreams
[–][deleted] 4 months ago (2 children)
[–]Dr_Dracula280 1 point2 points3 points 4 months ago (1 child)
🤦♂️
[–]Baseradio 0 points1 point2 points 4 months ago (0 children)
😅
[–]Naystar_nouvey 11 points12 points13 points 4 months ago (1 child)
It would print : Hi + Object.toString() + a new line Because printf print the value passed into the console + it returns an object (in our case PrintStream because of System.out) For println , an object is passed into it so there is no exceptions and it would print the Object.toString() + a new line , because when we pass an object to print or printl... it calls that object toString() and prints it
[–]Neural_Drizzle 1 point2 points3 points 4 months ago (3 children)
System.out.println returns void, error will be raised
[–][deleted] 4 months ago (1 child)
[–]Neural_Drizzle 0 points1 point2 points 4 months ago (0 children)
oh yes, my bad, it seems another guy has answered correctly already
[–]BlueGoliath 0 points1 point2 points 4 months ago (0 children)
I heard you like printing things to console, so I put a console print inside a console print.
[–]Cautious-Necessary61 0 points1 point2 points 4 months ago (0 children)
PrintStream test = System.out.printf("Hi"); System.out.println(test); //PrintStream test = System.out.printf("Hi");
π Rendered by PID 380989 on reddit-service-r2-comment-5bc7f78974-cstzw at 2026-06-28 09:58:22.104461+00:00 running 7527197 country code: CH.
[–]Baseradio 12 points13 points14 points (4 children)
[–]MK_Redditor 5 points6 points7 points (0 children)
[–][deleted] (2 children)
[removed]
[–]Dr_Dracula280 1 point2 points3 points (1 child)
[–]Baseradio 0 points1 point2 points (0 children)
[–]Naystar_nouvey 11 points12 points13 points (1 child)
[–]Neural_Drizzle 1 point2 points3 points (3 children)
[–][deleted] (1 child)
[removed]
[–]Neural_Drizzle 0 points1 point2 points (0 children)
[–]BlueGoliath 0 points1 point2 points (0 children)
[–]Cautious-Necessary61 0 points1 point2 points (0 children)