Java Happy Birthday Program

In this example, we will write a Java program to print Happy Birthday Java but you can customize this program to print your birthday.

Java Happy Birthday Program

package com.javaguides.programs;

public class HappyBirthdayJava {

    public static void main(String[] args) {

        System.out.println("HHHH     HHHH       AA         PPPPPPPPPPP  PPPPPPPPPPP    YY         YY ");
        System.out.println("HHHH     HHHH       AA         PPPPPPPPPPP  PPPPPPPPPPP    YY         YY ");
        System.out.println("HHHH     HHHH      AAAA        PP       PP  PP       PP     YY       YY ");
        System.out.println("HHHH     HHHH     AA  AA       PP       PP  PP       PP      YY     YY  ");
        System.out.println("HHHHHHHHHHHHH    AA    AA      PPPPPPPPPPP  PPPPPPPPPPP       YYYYYYY ");
        System.out.println("HHHH     HHHH   AAAAAAAAAA     PP           PP                    YY ");
        System.out.println("HHHH     HHHH  AA        AA    PP           PP                   YY ");
        System.out.println("HHHH     HHHH AA          AA   PP           PP                  YY ");

        System.out.println("BBBBBBBBBBB  IIIIIIIIIIIII RRRRRRRRRRRR  TTTTTTTTTTTTTT HHHH       HHHH  DDDDDDDDDDD        AA   YY          YY ");
        System.out.println("BB        BB      II       RR        RR        TT       HHHH       HHHH  DD         D      AAAA   YY        YY ");
        System.out.println("BB        BB      II       RR       RR         TT       HHHH       HHHH  DD          D    AA  AA   YY      YY ");
        System.out.println("BBBBBBBBBB        II       RRRRRRRRRRR         TT       HHHHHHHHHHHHHHH  DD          D   AA    AA   YYYYYYYY ");
        System.out.println("BB        BB      II       RR       RR         TT       HHHH       HHHH  DD          D  AAAAAAAAAA       YY ");
        System.out.println("BB        BB      II       RR        RR        TT       HHHH       HHHH  DD         D  AA        AA     YY  ");
        System.out.println("BBBBBBBBBBB  IIIIIIIIIIIII RR         RR       TT       HHHH       HHHH  DDDDDDDDDDD  AA          AA   YY ");

        System.out.println("           JJ       A A       VV             VV       A A      ");
        System.out.println("           JJ      AA AA       VV          VV        AA AA     ");
        System.out.println("           JJ     AA   AA       VV        VV        AA   AA    ");
        System.out.println("           JJ    AAAAAAAAA       VV      VV        AAAAAAAAA   ");
        System.out.println(" JJ        JJ   AA       AA       VV    VV        AA       AA  ");
        System.out.println(" JJ        JJ  AA         AA       VV  VV        AA         AA ");
        System.out.println(" JJJJJJJJJJJJ AA           AA        VV         AA           AA");

        System.out.println("                       ~~");
        System.out.println("                       ||");
        System.out.println("                       ||");
        System.out.println("                 ~~~~~~~~~~~~~~~~~   ");
        System.out.println("                |                 |");
        System.out.println("                |                 |");
        System.out.println("            ____|                 |___");
        System.out.println("           |     `````````````````    |");
        System.out.println("           |     Congratulations!     |");
        System.out.println("     ______|                          |_____   ");
        System.out.println("     |      ```````````````````````````     | ");
        System.out.println("     |       Happy 25th Anniversary Java!   | ");
        System.out.println("     |______________________________________|    ");

        System.out.println(" Thank you. I would like to thank again on belhalf of every Java programmers out there...........");

    }
}

Output

HHHH     HHHH       AA         PPPPPPPPPPP  PPPPPPPPPPP    YY         YY 
HHHH     HHHH       AA         PPPPPPPPPPP  PPPPPPPPPPP    YY         YY 
HHHH     HHHH      AAAA        PP       PP  PP       PP     YY       YY 
HHHH     HHHH     AA  AA       PP       PP  PP       PP      YY     YY  
HHHHHHHHHHHHH    AA    AA      PPPPPPPPPPP  PPPPPPPPPPP       YYYYYYY 
HHHH     HHHH   AAAAAAAAAA     PP           PP                    YY 
HHHH     HHHH  AA        AA    PP           PP                   YY 
HHHH     HHHH AA          AA   PP           PP                  YY 
BBBBBBBBBBB  IIIIIIIIIIIII RRRRRRRRRRRR  TTTTTTTTTTTTTT HHHH       HHHH  DDDDDDDDDDD        AA   YY          YY 
BB        BB      II       RR        RR        TT       HHHH       HHHH  DD         D      AAAA   YY        YY 
BB        BB      II       RR       RR         TT       HHHH       HHHH  DD          D    AA  AA   YY      YY 
BBBBBBBBBB        II       RRRRRRRRRRR         TT       HHHHHHHHHHHHHHH  DD          D   AA    AA   YYYYYYYY 
BB        BB      II       RR       RR         TT       HHHH       HHHH  DD          D  AAAAAAAAAA       YY 
BB        BB      II       RR        RR        TT       HHHH       HHHH  DD         D  AA        AA     YY  
BBBBBBBBBBB  IIIIIIIIIIIII RR         RR       TT       HHHH       HHHH  DDDDDDDDDDD  AA          AA   YY 
           JJ       A A       VV             VV       A A      
           JJ      AA AA       VV          VV        AA AA     
           JJ     AA   AA       VV        VV        AA   AA    
           JJ    AAAAAAAAA       VV      VV        AAAAAAAAA   
 JJ        JJ   AA       AA       VV    VV        AA       AA  
 JJ        JJ  AA         AA       VV  VV        AA         AA 
 JJJJJJJJJJJJ AA           AA        VV         AA           AA
                       ~~
                       ||
                       ||
                 ~~~~~~~~~~~~~~~~~   
                |                 |
                |                 |
            ____|                 |___
           |     `````````````````    |
           |     Congratulations!     |
     ______|                          |_____   
     |      ```````````````````````````     | 
     |       Happy 25th Anniversary Java!   | 
     |______________________________________|    
 Thank you. I would like to thank again on belhalf of every Java programmers out there...........

Comments