This thread is 3.5 years old. Please don't revive these old threads. Also read the rules before posting.
This thread is 3.5 years old. Please don't revive these old threads. Also read the rules before posting.
So you want to print that. What are we supposed to do, write it for you?
You don't have a class to put your methods in. That would be a good place to start. Also
Random generator = new Random;
It should say
Random generator = new Random();
Your while statement at the bottom doesn't do anything.
Thank you for marking your thread as solved. Not many people do that.
Welcome!
On the topic of snow:
If you dress a snowman it will melt slower.
This should get you started. I hope you will realize you need a little more than that but you can probably figure it out.
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);
He means don't declare your variables (if they have an access modifier like protected) in a method. Declare them outside of it.
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 [] args)
{
Yeah. It still was sucking up though :)
Please don't hijack other threads. Also if you want help you are going to have to post code showing your effort.
jbennet = god
Sucking up to Daniweb's top poster ;)
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 can't count and read it to learn how.
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 categorize you under another law breaking teen who thinks everything comes easy and thinks cracking is cool.
rep power is based on how long you have been a member, post count, your own reputation.
This thread was three years old before you brought it back from the dead. Please don't do that again.
Daniweb has fanboys? Interesting concept.
i would use a nested if else if statements....ive done this already its pretty easy then again not idk complicated i want to post my code but i cant just hand it over i think they would be mad at me lol
Yes nested if-else would work but for a nice OO design a method would be prefered (heck if you had a ton of grades I would make them their own class but lets not get crazy ;) ). However if you want, ifs are easier. We would not mind you handing over code snippets (we have a section in Daniweb that is all snippets) as long as the OP has shown effort by posting code. The announcements at the top of the page should answer you question about when to hand over code.
Because you are overtrusting of people and my name indicates that I couldn't cause any real harm.
Good luck. MidiMagic trusts you as much as he likes hover tooltips and ads.
if(grade > 0 && < 150){
}
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.
Welcome to Daniweb!
A quick Google search will proved lots of information. Reversing a String is a very common classroom exercise.
If you read the whole lesson they provide example snippets.
Life.
4577
hash