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

    106 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ZYXWU
    ZYXW
    ZYX
    ZY
    Z

    View Answer

    74 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ABCDE
    ABC
    A

    View Answer

    45 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    PRTV
    PRT
    PR
    P

    View Answer

    34 Likes


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

    View Answer

    49 Likes


  • 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

    View Answer

    61 Likes


  • 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

    View Answer

    89 Likes


  • 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

    View Answer

    32 Likes


  • Java String Handling

    Write a program in Java to display the following pattern:

    AAAAA
    BBBB
    CCC
    DD
    E

    View Answer

    14 Likes


Showing 31 - 40 of 87 Questions