I'm very new to Java and I'm getting really good so far in writing codes but i need help with these programs :
how can i print these shapes using for loop :
first shape : (I meant with the numbers to be numbers of spaces )
1234* // this line has 4 spaces
123**
12***
1****
*****
second shape:
----*
---**
--*-*
-*--*
*---*
these are dashes not spaces ... how can i print them using for loops