+ 2

Print the following pattern by string manipulation in java.

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

7th Oct 2017, 2:38 PM
Ashish Upadhyay
Ashish Upadhyay - avatar
1 Odpowiedź
+ 7
String print_dumb = "BLUEJ", res = ""; for(int i = 0; i < print_dumb.length(); i++) { res += print_dumb.charAt(i); System.out.println(res); }
7th Oct 2017, 2:55 PM
Dev
Dev - avatar