Course map
Stage 1: Foundation
Stage 2: Intermediate
Stage 3: Advanced
Stage 4: DSA in Java
Stage 5: Specialization

Part 01 / Topic 7 of 7

Your build: a welcome banner

Put sections 4–6 together: a second program, still just System.out.println calls, that prints a small welcome banner.

public class WelcomeBanner {
    public static void main(String[] args) {
        System.out.println("========================================");
        System.out.println("   Welcome to Java Step by Step!");
        System.out.println("   Learner: Asha, Pune");
        System.out.println("========================================");
        System.out.println("Today's plan: Hello.java -> javac -> java");
    }
}
$ javac WelcomeBanner.java
$ java WelcomeBanner
========================================
   Welcome to Java Step by Step!
   Learner: Asha, Pune
========================================
Today's plan: Hello.java -> javac -> java

No variables, no loops, no string tricks — every line is a literal, typed out by hand. That is deliberate: this part is about javac/java/the JVM, not the language itself. Part 2 gives you the tools (variables, String methods) to build this kind of banner without typing every = by hand.

Full program: examples/WelcomeBanner.java.

Done here? The practice set for Part 1 — including the solutions — is on the part page.

Search the guide