Im not sure that im posting in the the right place.
I writing a code that should recieve a string ("HELLO"), make it upper case, then print the whole string as huge as:
A =
a
a a
aaaaa
a a
a a
I think only of the way of comparing by Switch each letter (such as 'Z' is 90), as long as i do a "for loop" and check by string[0] to string [max], or by "char array".
I tried so many times and used many ways but nothing seems promising yet. Please give me an idea for finish it.
This is my last try for only letters A and B, hope you will understand.
public static void main(String[] args) { Scanner input = new Scanner(System.in); char x[] = input.nextLine().toCharArray(); String a1, a2, a3, a4, a5, b1, b2, b3, b4, b5, c1, c2, c3, c4, c5, d1, d2, d3, d4, d5; word1(x[0]);//first letter word2(x[1]); word3(x[2]); word4(x[3]); System.out.println(new String(a1)+new String(b1)+new String(c1)+new String(d1)); System.out.println(new String(a2)+new String(b2)+new String(c2)+new String(d2)); System.out.println(new String(a3)+new String(b3)+new String(c3)+new String(d3)); System.out.println(new String(a4)+new String(b4)+new String(c4)+new String(d4)); System.out.println(new String(a5)+new String(b5)+new String(c5)+new String(d5)); } private static void word1(char c){//bring first letter! String a1, a2, a3, a4, a5; switch (c) { case 90: a1 = " a "; a2 = " a a "; a3 = " aaaaa "; a4 = " a a "; a5 = " a a "; break; case 71: a1 = "bbb "; a2 = "b b "; a3 = "bbb "; a4 = "b b "; a5 = "bbb "; break; } } private static void word2(char c){//bring first letter!