View Single Post
Join Date: Nov 2008
Posts: 249
Reputation: Antenka has a spectacular aura about Antenka has a spectacular aura about Antenka has a spectacular aura about 
Solved Threads: 65
Antenka's Avatar
Antenka Antenka is offline Offline
Posting Whiz in Training

Re: Simple Java Help

 
0
  #2
Nov 19th, 2008
Correct me, if I'm wrong:
1. You creating new "clock" and setting it to 0.
  1. Time application = new Time();
  2. application.TimeTest(0, 0, 0);
2. Then while setting the hours creating 2 more clocks.
  1. Time application2 = new Time(); application2.setHours(input.nextInt());
and
  1. Time app = new Time();
  2. app.getHours();

Here is your problem: you setting hours to the clock-2 and getting it (hours) from clock-3.
So what if you can see the darkest side of me?
No one would ever change this animal I have become
Help me believe it's not the real me
Somebody help me tame this animal
Reply With Quote