Didn't found a topic for this quest. Been thinking for some time about it and found a solution (it was the simplest one, obvious :D )

String[] table = {"Stop", "Look", "Listen"};

    for (int i=0; i<3; i++)
    {
        for (int j=0; j<3; j++)
        {
            for (int k=0; k<3; k++)
            {
                if (j!=i && k!=i && k!=j)
                System.out.println(table[i]+table[j]+table[k]);
            }
        }
    }

asked 07 Feb, 07:34

Ja2ger's gravatar image

Ja2ger
111
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 07 Feb, 07:34

Seen: 18 times

Last updated: 07 Feb, 07:34

Related questions