[SATLUG] Java problem
mikeaw at gmail.com
Tue Jan 24 09:54:04 CST 2006
Java is working just fine. Whenever you're confronted with problems
like these, you'll want to go to
http://java.sun.com/j2se/1.5.0/docs/api/ and read up on the
appropriate documentation, in this case String.substring and
JOptionPane.showMessageDialog. You might learn an interesting thing
or two and realize why they aren't working as you expect. You might
also try looking at the values of your variables as the program is
running and see if some bad input may be the source of the problem.
But as I said, Java is working just fine. :-)
On 1/24/06, Alex Bartonek <bartonekdragracing at yahoo.com> wrote:
> I finally got around to installing java 1.5.0_06...
> after doing so I went through some of the examples in
> a book and ran across a problem which threw me for a
> I get the following error (screenshot of my IDE):
> That was just the first problem.. the second was at
> compile time using showMessageDialog, displaying the
> indexOf value for "I".. screenshot below:
> At any rate..I dont know if its my java version or
> not.. this is running under SuSE Linux 10.
> The screenshot includes the whole code snippet..very
> simple program.. Anyone have ideas why I'm getting
> this problem?
More information about the SATLUG