object oriented die game HELP!

Hey everyone,
so I'm new in object oriented programming so I'm not sure about how to write this program. I need to create a die game with the class: DIE, that rolls the die. it needs to have a method called: "roll" that rolls the dice again and it needs to print the value. the second time we roll the die, it need to print the previous value as well.

Why would I hate you? You posted code with CODE tags! You are already one of my favorites!

So what does your code do now?
What the the next thing you need it to do?
I'm assuming it compiles.

Remember, we are programmers, not psychics. You need to ask questions, not let us figure out what you need to do next. Then we can guide to in the right direction. After all, it's your program, not ours.

Why would I hate you? You posted code with CODE tags! You are already one of my favorites!

So what does your code do now?
What the the next thing you need it to do?
I'm assuming it compiles.

Remember, we are programmers, not psychics. You need to ask questions, not let us figure out what you need to do next. Then we can guide to in the right direction. After all, it's your program, not ours.

hahahaha...
it compiles, but I think there's something wrong with the initialization of the constructor because I only get 0s and I'm supposed to get numbers from 1 to 6... Do you know what's wrong with my code?
and after that, I need to create a method called: "roll" that rolls the die again. how do I do that?

Change the name of setX to Roll. Add a statement to Roll to set the old value to another private member variable. Make a new setX that has the signature void setX(int value) which is only used to set the value of the die if necessary.