jasimp 427 Senior Poster Featured Poster

This thread is 3.5 years old. Please don't revive these old threads. Also read the rules before posting.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

So you want to print that. What are we supposed to do, write it for you?

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster

Thank you for marking your thread as solved. Not many people do that.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

On the topic of snow:

If you dress a snowman it will melt slower.

jasimp 427 Senior Poster Featured Poster

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);
jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

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)       
  {
jasimp 427 Senior Poster Featured Poster

Yeah. It still was sucking up though :)

jasimp 427 Senior Poster Featured Poster

Please don't hijack other threads. Also if you want help you are going to have to post code showing your effort.

jasimp 427 Senior Poster Featured Poster

jbennet = god

Sucking up to Daniweb's top poster ;)

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured 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.

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster

rep power is based on how long you have been a member, post count, your own reputation.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

This thread was three years old before you brought it back from the dead. Please don't do that again.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Daniweb has fanboys? Interesting concept.

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster

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.

jasimp 427 Senior Poster Featured Poster
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.

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

Welcome to Daniweb!

jasimp 427 Senior Poster Featured Poster

A quick Google search will proved lots of information. Reversing a String is a very common classroom exercise.

jasimp 427 Senior Poster Featured Poster

If you read the whole lesson they provide example snippets.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster
jasimp 427 Senior Poster Featured Poster

Life.

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

Welcome!

jasimp 427 Senior Poster Featured Poster

4577

jasimp 427 Senior Poster Featured Poster

hash

jasimp 427 Senior Poster Featured Poster

-989

jasimp 427 Senior Poster Featured Poster

-986