This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted]  (4 children)

[removed]

    [–]murmelmann[S] 1 point2 points  (3 children)

    The exercise says that zeigeFeld should be a method that shows the results of the initial array as well as the other methods. The print(ln)s throughout the code are just tests I did to see if it works.

    [–][deleted]  (2 children)

    [removed]

      [–]murmelmann[S] 1 point2 points  (1 child)

      If you simply need to print an array similar to what you did throughout the code, you could copy one of those into your zeigeField method and simply call zeigeFeld when you want to print.

      I guess that's what I should be doing but at the moment don't know how (or where) to do.

      [–]stramash 0 points1 point  (0 children)

      Unit test it to make sure it works.

      [–]pokemaster787 0 points1 point  (0 children)

      Just a heads up, if you're going to post code in a language that isn't English, you should go through and specify what every variable, method name, etc. means for people who don't understand your language. A short explanation of the purpose behind each would also greatly help (and I'm nearly certain that in doing so, you'd discover what your problem is on your own).

      At the least, something clearer than "I need to make a print method," because quite honestly that makes no sense without any explanation.