KnowledgeBoat Logo

Java Pattern Programs

  • Java String Handling

    Write a program to accept a word (say, BLUEJ) and display the pattern:

    B L U E J
    L U E J
    U E J
    E J
    J


  • Java String Handling

    Write a program to display the pattern:

    A B C D E
    B C D E
    C D E
    D E
    E


  • Java String Handling

    Write a program to display the pattern:

    A
    B C
    D E F
    G H I J
    K L M N O


  • Java String Handling

    Write a program to display the pattern:

    A B C D E
    A B C D A
    A B C A B
    A B A B C
    A A B C D


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    *
    ***
    *****
    *******
    *********


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    * 
    * * 
    * * * 
    * * * * 
    * * * * *
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    * * * * * 
      * * * * 
        * * * 
          * * 
            *
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

       *
      **
     *
    **
    


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    *
    * #
    * # *
    * # * #
    * # * # *


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    $
    **
    ###
    


Showing 41 - 50 of 87 Questions