Learn Java Easy. Chapter 5 Exercises

🔁 Java Loop Exercises Solved Step by Step | Topic 5 Topic 5 Exercises Exercise 1. Create a program that shows multiples of 5 between numbers 0 and 100 using a for loop. Solution: public class Main { public static void main(String[] args) { //We create a for loop //i = 0 since it’s our … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 5. Meeting Bud. Learning to use loops

Chapter 5: Meeting Bud and Learning Loops in Java Chapter 5. Meeting Bud. Learning to use loops I can’t stop thinking about how quickly life can change. Fernando and Rich have been quite lucky, but I haven’t been so fortunate. It seems that the police have found something on my computer, although they haven’t specified … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 4 Exercises

🧩 Practical Exercises with Conditionals in Java | Topic 4 Topic 4 Exercises Exercise 1. Write a day of the week on the keyboard and, depending on which one it is, we will show the activity that we have to do. The activities are: Yoga, Biking, Gym, Painting and Reading. Solution: import java.util.Scanner; public class … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 4. Spending Time at the Police Station / Working with Conditionals

Chapter 4: Working with Conditionals Chapter 4. Hanging Out at the Police Station / Working with Conditionals I don’t know how it happened, but I am at the police station. Specifically, locked in a room with Rich and his friend, who, by the way, is named Fernando. The story is quite simple to tell, although … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 3 Exercises

🎯 Exercises: Keyboard Input in Java | Topic 3 Topic 3 Exercises Exercise 1. Create a program where we can input an integer and then display it on the screen. Remember to import the Scanner class: import java.util.Scanner; Solution: Scanner exercise = new Scanner(System.in); System.out.println(“Enter a number”); int a = exercise.nextInt(); System.out.println(“The entered number is: … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 3. Rich’s Friend / Keyboard Data Input

Chapter 3: Rich’s Friend / Keyboard Data Input Chapter 3. Rich’s Friend / Keyboard Data Input Two days have passed since the party and it’s time to clean up. It can’t be said that it’s one of my favorite activities, but this time there’s no other option. I can’t stop thinking about how lucky Chani … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 2 Exercises

💻 Exercises: Display data in console in Java | Topic 2 solved Topic 2 Exercises Exercise 1. Tell me the difference between System.out.println and System.out.print. Solution: If you use System.out.println(“Hello”); it will print “Hello” and then move to the next line. But if you use System.out.print(“Hello”); it will print “Hello” on the same line where … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 2. Chani’s Disappearance / Displaying data in console

Learn Java Easy. Chapter 2. Chani’s Disappearance / Displaying data in console Do you remember when I said I was going to have a party at my house? Well, it was a huge success. I’m not sure how many people were there, but more and more people kept showing up. I didn’t know half of … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Chapter 1 Exercises

Chapter 1 Exercises Exercise 1. Declare three variables of different types: one variable of type int, another of type String, and a third of type char. Directly assign the value 25 to the int variable, “Hello world” to the String variable, and the character ‘A’ to the char variable.   Solution:   💡 Use descriptive … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏

Learn Java Easy. Introduction

🧩 Introduction: Learn Java from scratch with history and exercises 🧩 Introduction: Learn Java from scratch with history and exercises A carefree life in Salamanca / Introduction and data types Throughout my entire life I have felt untouchable. I haven’t had major concerns and I have always had the support of friends and family. I … Read more

Did you like it? Don’t keep it to yourself — share it like juicy gossip! 😏