When to throw exceptions and when to use System.err?Merciadri 6 127 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Everything is in the title: when would you throw an exception
(possibly with some text) at t...
readLine() != nullMerciadri 4 152 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
As described in some preceding messages, I'm using the following
instructions to read a file...
Getters defined in a classMerciadri 3 124 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've got some getters defined in one of my classes, so that other
classes can access the pri...
Enum listMerciadri 12 145 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've got a State enum defined in a separate State.java file (just like
a class):
==
publ...
Accessing a String element (jth position)Merciadri 5 145 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've got a String myString whose jth element needs to be accessed. I
tried myString[j] but i...
Array of somethingMerciadri 8 115 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am defining a `Tableau' array of `Cell' elements. Tableau and Cell
are both classes, and s...