Re: weird runtime error
- From: asbjornh@xxxxxxxxx
- Date: 27 Mar 2007 12:17:57 -0700
On Mar 27, 8:22 pm, "Oliver Wong" <o...@xxxxxxxxxxxxxx> wrote:
It's not an error. You are probably providing an instance of Region to
System.out.print() or System.out.println(). The implementation of
System.out.println() is to invoke the .toString() method on any objects
passed in.
The conceptually simplest fix would be to not pass an instance of
Region to System.out.println() at all, but rather to query the Region
objects for the information you wish to print out (e.g. the contents of a
specific cell), and print that out instead.
Another solution would be to modify the Region class so that it
overrides the toString() method.
- Oliver
Thakns a lot for the replies! :) I think I get it.
.
- References:
- weird runtime error
- From: asbjornh
- Re: weird runtime error
- From: Oliver Wong
- weird runtime error
- Prev by Date: Re: Generate Website(HTML) thumbnails on the fly
- Next by Date: Re: Generics Problem
- Previous by thread: Re: weird runtime error
- Index(es):
Relevant Pages
|
|