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

    30 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

    28 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

    54 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

    25 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

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

    View Answer

    11 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

    14 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

    81 Likes


  • Java Nested for Loops

    Write a program in Java to display the following pattern:

    $
    **
    ###
    


Showing 41 - 50 of 87 Questions