Re: weird runtime error
- From: "Richard Reynolds" <richiereynolds@xxxxxxxxxxxx>
- Date: Tue, 27 Mar 2007 18:12:10 GMT
<asbjornh@xxxxxxxxx> wrote in message
news:1175018890.600066.180410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi. I'm currently taking a beginners java-programming class at theadd a method to your Region class:
University in Bergen, Norway. This week we got an assignment that we
have to do before friday. If I don't pass, they won't let me take the
final exam... :(
So we're making a sudoku game, and the teacher gave us a bunch of
classes. We're supposed to "fill in the blanks". It all went
reasonably well, until I tried to print out the sudoku table, and i
got this really weird output. Instead of numbers, I got this:
Region@112f614 (Region is the class of which the cells in the table
are objects - I think...) Does anyone know what causes this? If
needed, I could post the code, but it is a lot of code, and all the
comments and the names are all in norwegian. But if you need to see
the code in order to help me, please just ask.
public String toString()
{
return "however you want the output to look";
}
the "however you want the output to look" bit is likely to be something like
getValue() or getNumber, whatver your method is called in the Region class
that gets the output you actually want to see
.
- References:
- weird runtime error
- From: asbjornh
- weird runtime error
- Prev by Date: weird runtime error
- Next by Date: Re: weird runtime error
- Previous by thread: weird runtime error
- Next by thread: Re: weird runtime error
- Index(es):
Relevant Pages
|
|