Rick Rod

Greenhorn
+ Follow
since Nov 20, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rick Rod

I am having a hard time understanding what the benefit is of Getters and Setters.
Dog a = new Dog()
a.Name = "big";

gives me the same result as
Dog a = new Dog()
a.setName("big");
a.getName();

so where is the benefit if I have to type more, and yes I am truly a novice(beginner)
18 years ago
I figured it out, trial an error,
it works if you just keep trying.
18 years ago
Thank you for your documentation it was a big help.
I figured out that I had to refer the array's to the object and it worked.

on a side note how would I get the wording to be equally spaced out. right now the outcome is
"the grapes of wrathbybobthe java byjoethe java cookbookbydeb"
I want to have it as
"the grapes of wrath by bob the java by joe the java cookbook by deb"
Now you can really tell I am a begginer.
18 years ago
I can compile just fine but when I try and run the program I get this message. Can someone please help me out with this. "Exception in thread "main" java.lang.NullPointer.Exception

class BooksTestDrive {
public static void main(String[] args) {
Books[] myBooks = new Books[3];
myBooks[0].title = "The Grapes of wrath";
myBooks[1].title = "The Java";
myBooks[2].title = "The Java cookbook";
myBooks[0].author = "bob";
myBooks[1].author = "joe";
myBooks[2].author = "deb";
int x = 0;

while (x < 2) {
System.out.print(myBooks[x].title);
System.out.print("by");
System.out.print(myBooks[x].author);
x = x+1;
}
}
}

18 years ago
I am trying to compile and am getting this error message can someone tell me how to correct this.

C:\Java>javac PhraseOMatic.java
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/M
ain

18 years ago
After creating a program such as "hello world", I know I can run it in "cmd" but how can I run it out of the "cmd Prompt". I see the Class file but clicking on it will not let me run it alone. do I need another GUI up?
18 years ago
New to Java and just learning and want to create a application and have a question. Can someone tell me if Java works with office applications.
I.E. I want to have a program that allows for inputing of Data then inturn puts this information on 2 seperate Excel forms or even word forms.
18 years ago
Bert,
I have purchased the Head Start Java as well as Beginning Programing for Dumies and waiting for those to arrive, hoping this will be enough for me. I am looking to get the SCJA cert. Will the Head Start book help in achieving this or will I also have to get a specific Cert Training book or online course, such as the Fundamentals of Java from Sun website?
18 years ago
Thank you Marc,
I was also wondering if it is necessary to learn a language like C# first or can I just dive right into Java and learn the language that way or will it be too dificult this way?
18 years ago
I am taking on the task of trying to become a programmer and have no experience with programming. I like the Java platform and would like to know where would be the best place to start.
18 years ago