No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Re: To start, I would create a method that returns a random time between 9 and 10 secs as a string. Then in a for loop, you could set the time of each runner. ex: race.get(i).setTime(getRandomTime()); | |
Re: what input are you using, and what output are you getting. | |
Re: You are entering a taxpayer with the same parameters within your for loop. Depending on what parameters you start with you are going to need to increment or decrement, for your current example it you would need 2 variables. One would increment by 10,000 each time and you would add … | |
Re: in your prior case where you used .add() that would usually use the .add() method of some other object. If you are in the class with the add method, then it should be more like add(word, line). and in your add method it should contain something like: [CODE] String wordVar … | |
Re: First you need a constructor for creature, then call your super class in the the creature's constructor. [QUOTE=lrolsto1;1163322]Alright, this is for a project designed to make us use inheritance. This is Creature, which is a subclass of Thing. Creature is supposed to be able to eat, move and tell what … | |
Re: That much code is not fun to read, even less fun when it isnt in code tags :) [CODE] //class file import javax.swing; public class DownLoadManager { public static String albumTitle; public static String albumName; public static String albumArtist; public static String albumWebSite; public static double albumPrice; DownLoadManager(String aTitle, String … | |
Re: I just briefly glanced over it, but two things I notice initially are: you only need one main method. Leave the main method in ShoppingList and it creates an instance of ShoppingListItem but delete it out of ShoppingListItem. Second problem: Since you are only adding one item to the shoppingList … | |
So here's the rundown. I have a base class, I want to put a clickHandler in it because all of my subclasses will need it, but they will all execute different code when it is triggered. My question is, how can i have a clickHandler in my base class and … | |
Ok, so I've been stuck for a little while now on this problem. I'm trying to pass an array of Tabs and I'm just not doing it correctly. I believe I'm missing something simple, because I need to learn more about what is happening with my code rather than just … |
The End.