0

Here is the error

[IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG]

and here is the code that i'm working on

public String getKillMessage(String player) {
        String[][] selection = {{"Congratulations, you have defeated ", "},
                {"Congratulations, you have ", "}};
		
        int index = (int) Math.floor(Math.random() * 9);
        return selection[index][0] + player + selection[index][1];
    }

Any help is appreciated!

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

Attachments compile_error.png 41.15 KB
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Sabatino
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.