Sowmiyanoobcoderr.hashnode.dev·Dec 18, 2024Day 3 of 30 Days of Java: Learning Loops the Kanye Way!1. The "For" Loop – Kanye on Repeat 🎤 Imagine Kanye playing "Stronger" on repeat for a set number of times—that's a for loop! It’s perfect when you know how many times you need to repeat something. Explaination: Kanye sings "GOAT" 5 times (0 to 4)...5 likes·46 readsTechHumor
Vahid30daysofjava.hashnode.dev·Nov 1, 202230 Days of Java | Day 3One-line if statements If the if statement only has one statement you do not need braces, although it can be good to put them anyways. int score = 250; if (score > 100 && score <300) System.out.println("You got it!"); Variables in code blocs are no...68 readsJava
Vahid30daysofjava.hashnode.dev·Oct 14, 202230 Days of Java | Day 1The running mechanism: You create a java document with .java extension. You run the document through a javac compiler which compiles the code into a new class file (.class extension), checks for errors and if there is no error, it will run. A new...165 reads30 Days of Code