Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #13.9K
Ranked #1K
~9K People Reached
Favorite Forums

10 Posted Topics

Member Avatar for Member #670915

I'm not sure of the best way to do this exactly, but I doubt you would actually have to create 30 separate classes. Think of ways you could simplify things. You probably don't need a "name" class, since you could just make the name a string. Since it's an insurance …

Member Avatar for Member #670915
0
966
Member Avatar for mruane

What doesn't work? Does it give you an error? Or does it just not function properly? what does it do?

Member Avatar for mruane
0
153
Member Avatar for AZSooner

It doesn't like the way you reference the inventory array because in your method signature you don't properly state what the parameter is. Your code: [CODE] private void printArray(inventory[]){ for (int i = 0; i < inventory.length; i++){ System.out.println(inventory[i]); } } [/CODE] What it should be: [CODE] private void printArray(Video[] …

Member Avatar for Mikeyp926
0
6K
Member Avatar for Inkoosikas

I'll give you a few pointers to get started, but you'll learn a lot more if you actually write the code yourself. I'd started by summing up the total of the first list and storing it in a variable. Then you would probably want to loop through the first list …

Member Avatar for Inkoosikas
0
114
Member Avatar for HiHe
Member Avatar for mn_kthompson
0
119
Member Avatar for sonial8

If you know that there will always be a newline there, you could just splice the string that is returned. text[0].split('=')[1][:-1] that should work. This takes everything but the last char which is the newline. -Michael

Member Avatar for sonial8
-1
163
Member Avatar for shroomiin

That code looks like you are on the right track, however, I'm not so sure about the "Miles++ and Gallons++" part. Instead of incrementing them, don't you want to add the values input to those variables? Also, you might want to create some separate variables to keep track of the …

Member Avatar for Mikeyp926
0
188
Member Avatar for gibson.nathan

Ok, I'll throw out a couple of tips to try and straighten things out. First, I think his method declarations are fine, he's not declaring the method as an array, he's declaring the return type as an array, which is perfectly fine. However, you need to be careful about the …

Member Avatar for ieshoes
0
197
Member Avatar for bruceaj

Isn't Vector a generic class? You would have to define the generic type when you create the new vector. Judging by your code you would want something like: [CODE] Vector<DoctorData> dataList = new Vector<DoctorData(); [/CODE] Does that fix the problem? ...I'm pretty sure vector is generic...

Member Avatar for Mikeyp926
0
98
Member Avatar for klackey19

The End.