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

    View Answer

    37 Likes


  • 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

    View Answer

    36 Likes


  • 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

    View Answer

    66 Likes


  • 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

    View Answer

    34 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    12 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    18 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    16 Likes


  • 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:

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

    View Answer

    92 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    $
    **
    ###
    


Showing 41 - 50 of 87 Questions