Care to explain line be line how my simple program works /b/?
I just started learning java 3 hours ago because /g/ said it's the best language. So right now Java is getting more confusing so while i'm having this burning passion to learn something motivate me /b/ Learning is fun /b/
Regardless. The second line is required because in java everything has to be within a class. The curly brackets define the start and end of the class. Then line four begins a method. The main method is where actual execution begins, so lines 6 through 10 are the meat of your program. The for loop in line 6 executes lines 8 and 9 once for every number (call it i) up to ten starting from zero. Line 8 causes line 9 to execute if i is even. Line 9 prints the value of i.
Languages aren't everything tho, so get to know your environments.
Best thing you can do: Learn Java enough to join a company, and everything else will fall into place.
Please support this website by donating Bitcoins to 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5 If a post contains copyrighted or illegal content, please click on that post's [Report] button and fill out a post removal request
All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site. This means that 4Archive shows an archive of their content. If you need information for a Poster - contact them.