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

    107 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ZYXWU
    ZYXW
    ZYX
    ZY
    Z

    View Answer

    75 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    ABCDE
    ABC
    A

    View Answer

    46 Likes


  • Java Library Classes

    Write a program in Java to display the following pattern:

    PRTV
    PRT
    PR
    P

    View Answer

    35 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

    52 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

    62 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

    92 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