KnowledgeBoat Logo

Java Pattern Programs

  • Java Library Classes

    Write a program in Java to display the following pattern:

    a  
    ce  
    gik  
    moqs
    


  • Java Library Classes

    Write a program in Java to display the following pattern:

    A
    ab
    ABC
    abcd
    ABCDE

    View Answer

    11 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ZYXWU
    ZYXW
    ZYX
    ZY
    Z


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ABCDE
    ABC
    A


  • Java Library Classes

    Write a program in Java to display the following pattern:

    PRTV
    PRT
    PR
    P


  • Java Library Classes

    Write a program in Java to display the following pattern:

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


  • Java Library Classes

    Write a program in Java to display the following pattern:

    a a a a a
    b b b b b
    A A A A A
    B B B B B


  • Java String Handling

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

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


  • Java String Handling

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

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


  • Java String Handling

    Write a program in Java to display the following pattern:

    AAAAA
    BBBB
    CCC
    DD
    E


Showing 31 - 40 of 87 Questions