Skip to main content

Posts

Featured

50 Different Pattern Programs in java

class Pattern1{ public static void main(String args[]){ for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ System.out.print("*"); } System.out.println(); } } } /* ***** ***** ***** ***** ***** */ class Pattern2{ public static void main(String args[]){ for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ System.out.print(i); } System.out.println(); } } } /* 11111 22222 33333 44444 55555 class Pattern3{ public static void main(String args[]){ for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ System.out.print(j); } System.out.println(); } } } /* 12345 12345 12345 12345 12345 */ class Pattern4{ public static void main(String args[]){ char i; char j; for(i='A';i<='E';i++){ for(j='A';j<='E';j++){ System.out.print(i); } System.out.print("\n"); } } } /*AAAAA   BBBBB ...

Latest Posts

Wipro Assessment Questions With Solution Part - 2

Important Questions on Strings and Arrays

Wipro Assessment Questions With Solutions Part-1