Posts: 98
Threads: 6
Joined: Jul 2011
Reputation:
0
It sounds pretty legit to me
Posts: 102
Threads: 1
Joined: Jul 2011
Reputation:
0
I read the C++ version of that book. In my opinion, that was a great book.
Posts: 3
Threads: 0
Joined: Feb 2013
Reputation:
0
I am reading "Sams Teach Yourself Java in 21 Days"
In Listing 3.4 called "RefTester.java" it starts with code:
Import java.awt.Point;
This line generates a lot of error messages.
I have downloaded the Java language and the first 6 lessons have worked properly.
Any suggestions?
Posts: 3
Threads: 0
Joined: Feb 2013
Reputation:
0
This is from listing 5.2 - Passer.java
The lesson was to insert values for the text array so we could get some output. I have tried to do that with text[1] = "John"; text[2] = "Harry" etc.
class Passer{public static void main(String[] arguments) {
Passer passer = new Passer();
passer.toUpperCase(arguments);
for (int i = 0; i < arguments.length; i++) {
System.out.print(arguments[i] + " ");
}
//next line is 8
System.out.println();
}
void toUpperCase(String[] text) {
text[1] = "John";
text[2] = "Harry";
text[3] = "Mary";
// next line is 16
for (int i = 0; i < text.length; i++) {
text[i] = text[i].toUpperCase();
}
}
}
It generates the error message: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Passer.toUpperCase(Passer.java:16)
at Passer.main(Passer.java:8)
Any help would be appreciated.
Posts: 3
Threads: 0
Joined: Feb 2013
Reputation:
0
03-04-2013, 04:18 PM
(This post was last modified: 03-04-2013, 04:19 PM by MikeSmith1.)
I have just downloaded Net Beans IDE 7.3.
When I attempt to use it, I get an error message
"Net Beans Connector Chrome extension is required.
To run your project in Chrome with NetBeans integration, you must first install the NetBeans Connector extension in the Chrome Web Store."
I have set the default browser to Firefox but it gives this message anyway.
Any help would be appreciated.