2
$\begingroup$

I'm trying to make a pattern that looks like this: enter image description here

And am given this code to start:

import static java.lang.System.*;

class TriangleWord
{
private String word;

public TriangleWord()
{
    word = "";
}

public TriangleWord(String w)
{
    setWord(w);
}

public void setWord(String w)
{
    word = w;
}

public String toString()
{

}
}

There's also a runner involved. Please help!!

$\endgroup$

closed as off-topic by Yuval Filmus, Kyle Jones, D.W. Nov 11 '15 at 17:56

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions about software development or programming tools are off-topic here, but can be asked on Stack Overflow." – D.W.
  • "This question does not appear to be about computer science, within the scope defined in the help center." – Yuval Filmus, Kyle Jones
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    $\begingroup$ This is a programming exercise, so out of scope here. $\endgroup$ – Yuval Filmus Nov 11 '15 at 17:43

Browse other questions tagged or ask your own question.