hi guys
I am new to the site as well as programming with
java. can anybody kindly help me explain the mechanics of the below code.
basically here are my questions
1- I understand why I need to use I for my loop as the loop will go around 20 times but I am not sure how k and J helped me create this pyramid.
2- it looks like this code only works with one character "*" because if I try to replace the star with a
string, name or two or more character I will get a different shape. how can I modify my code so it will give me an exact pyramid regardless of what I type on the System.out.print
Thanks