Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Β© A+ Computer Science - www.apluscompsci.com
- //Name -
- //Date -
- //Class -
- //Lab -
- import static java.lang.System.*;
- public class TriangleOne
- {
- private String word;
- public TriangleOne()
- {
- word="";
- }
- public TriangleOne(String s)
- {
- word = "";
- for (i<= word.length(); i = 0; i++){
- for(i = 0; 1 >= word; i++){
- String output = output + word;
- }
- output = output + "\n";
- }
- }
- public void setWord(String s)
- {
- word = s;
- }
- public void print( )
- {
- System.out.println(TriangleOne());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement