1,522 Posted Topics
Re: You don't have a class to put your methods in. That would be a good place to start. Also [CODE]Random generator = new Random;[/CODE] It should say [CODE]Random generator = new Random();[/CODE] Your while statement at the bottom doesn't do anything. | |
Re: Well I don't know what you mean by hacker. If you mean someone who is on the wrong side of the law, cracking into other people's systems then Daniweb is not the place for you. Your statement in your post is very childish. It made me instantly dislike you and … | |
Re: It does always amaze me that almost every Geeks Lounge thread always has visitors viewing it; as I write this one has five. Especially in the posting games. When I am viewing them and I see that a visitor is viewing "counting lessons" it makes me wonder if they actually … | |
Re: This should get you started. I hope you will realize you need a little more than that but you can probably figure it out. [CODE]int [] xcoords = { 1,2,3,1} // example int [] ycoords = {1,2,3,1 } Polygon triangle = new Polygon(xcoords,ycoords,number of points); g.setColor(Color); g.fillPolygon(triangle);[/CODE] | |
Re: He means don't declare your variables (if they have an access modifier like protected) in a method. Declare them outside of it. [CODE=java]public class GUINew extends JDialog implements ActionListener { protected JButton ok; protected JButton cancel; protected ButtonGroup type; protected JTextField bid; protected JTextField name; public static void main (String … | |
Re: [QUOTE=>shadow<;592126]jbennet = god[/QUOTE] Sucking up to Daniweb's top poster ;) | |
Re: Please don't hijack other threads. Also if you want help you are going to have to post code showing your effort. | |
Re: This thread was [B]three years[/B] old before you brought it back from the dead. Please don't do that again. | |
Re: [CODE] if(grade > 0 && < 150){ }[/CODE] You can use that as a starting point. Seeing as you are checking multiple grade I would recommend creating a method that checks the grade. | |
Re: [QUOTE=helpless00;591077]Because you are overtrusting of people and my name indicates that I couldn't cause any real harm.[/QUOTE] Good luck. MidiMagic trusts you as much as he likes hover tooltips and ads. | |
Re: A two second Google search. [URL="http://java.sun.com/docs/books/tutorial/essential/concurrency/"]http://java.sun.com/docs/books/tutorial/essential/concurrency/[/URL]. | |
Re: A quick Google search will proved lots of information. Reversing a String is a very common classroom exercise. | |
Re: Google it. We don't do your work for you. Read API docs on Arrays, ArrayLists. | |
Re: I think he means you should remove the implements from your Play class. [CODE=java] public class Play extends JApplet {[/CODE] | |
Re: How about you write your own program, then evaluate it and see how the code could be more efficient. | |
Re: EDIT: Ezzaral was too fast for me ;) |
The End.