please help me how to make different kinds of triangle ,using asterisk("*"),using netbeans.. please.. :(( java..

: input length first then?.

*
**
***
****
***** (depends on the length)

*****
****
***
**
* (depends on the length)


----*
---**
--***
-****
***** (depends on the length)

*****
_****
__***
___**
____* (depends on the length)

please help..

tnx.. :))

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.