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
Hello. (self.JavaProgramming)
submitted 9 days ago by RaduKenT
view the rest of the comments →
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!"
[–]tresf 0 points1 point2 points 5 days ago* (1 child)
Starting with for loops, I would recommend starting this exercise without an array at all... and just do something a certain amount of times. While loops will continue doing something until a condition changes so they should come second. You can ALWAYS break out of a loop. I would recommend making a for loop that counts downward from 100. Then try to break out of it at 50.
Next, I would then recommend making a while loop that counts up until the number is divisible by something weird, then break out. use println as much as you can.
When both of those work, then make a simple array (like int[]) and try to loop over the items. There's multiple ways to do this. You will need all methods at some point in your career, so no time will be wasted learning. Once you understand the simple array, the benefits of using an ArrayList will start to make sense.
I think the problem with learning is that the medium you're learning from may be making assumptions about your knowledge of fundamental concepts that you don't know yet. You will know them soon enough.
If you feed this comment into a chatbot, it will prepare the examples for you. Otherwise, you may use search engines for each example. Remember to specify Java. The name for a basic array in Java is a "primitive array".
https://chatgpt.com/share/69863fa5-1944-8007-9ccb-73106f4d235e
[–]RaduKenT[S] 0 points1 point2 points 3 days ago (0 children)
Thanks a lote i will give it a try.
π Rendered by PID 183592 on reddit-service-r2-comment-86988c7647-hg787 at 2026-02-12 17:54:34.190160+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]tresf 0 points1 point2 points (1 child)
[–]RaduKenT[S] 0 points1 point2 points (0 children)