Learn Java Programming With Alvin David Ep7 - (Java Variables - Print Variables)

Опубликовано: 28 Июнь 2026
на канале: Learn Java Programming With Alvin David
No
0

Welcome to *Learning Java Programming With Alvin David – Episode 7 Part 2: Printing Variables* ☕🚀

In this lesson, we continue our journey into Java Variables by learning how to display variable values on the screen using Java output statements.

You will learn how to print variables, combine text with variables, perform calculations using variables, and understand the concept of *concatenation* in Java.

In this video, you will learn:

✅ How to print variables using `System.out.println()`
✅ What concatenation is and how it works in Java
✅ Combining text and variables in a single output statement
✅ Creating full names by joining multiple string variables
✅ Adding numeric variables together
✅ The difference between string concatenation and mathematical addition
✅ Using parentheses to control calculations in output statements
✅ Declaring multiple variables in Java
✅ Solving practical exercises on printing variables

Examples covered:

```java
String courseName = "Java Programming With Alvin David";
System.out.println("Welcome to " + courseName);
```

```java
String firstName = "Alvin";
String lastName = "David";
String fullName = firstName + " " + lastName;

System.out.println(fullName);
```

```java
int x = 32;
int y = 34;

System.out.println(x + y);
```

```java
int a = 5;
int b = 6;

System.out.println("The sum is: " + (a + b));
```

Throughout the lesson, we demonstrate how Java handles text and numbers differently and how to avoid common mistakes when combining variables with output statements.

By the end of this video, you will confidently print variables, join strings, perform calculations, and create more interactive Java programs.

📚 Playlist: Learn Java Programming With Alvin David

💻 Practice the examples shown in this lesson.
👍 Like the video if it helped you.
💬 Leave your questions in the comments section.
🔔 Subscribe and turn on notifications so you never miss a lesson.

In case you need to refer to the code used in this lesson, check my bio for the link to the GitHub repository.

#Java
#LearnJava
#JavaVariables
#JavaOutput
#Concatenation
#Programming
#Coding
#JavaTutorial
#JavaForBeginners
#SoftwareDevelopment
#IntelliJIDEA
#AlvinDavid