aspose file tools*
The moose likes Beginning Java and the fly likes Unexpected result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unexpected result" Watch "Unexpected result" New topic
Author

Unexpected result

orgil khatanbaatar
Greenhorn

Joined: Aug 05, 2011
Posts: 17


It seems to be correct. but giving no output. Why?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Welcome to the Ranch!

Please do not hijack an existing thread for an unrelated question. And UseCodeTags from now one.

When I try your code it gives me the output I expected. Apparently you expect something else. So why don't you tell us what you're expecting, and then we can tell you why you're getting different results.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
orgil khatanbaatar
Greenhorn

Joined: Aug 05, 2011
Posts: 17
Rob Spoor wrote:Welcome to the Ranch!

Please do not hijack an existing thread for an unrelated question. And UseCodeTags from now one.

When I try your code it gives me the output I expected. Apparently you expect something else. So why don't you tell us what you're expecting, and then we can tell you why you're getting different results.

thank you! I expected:
00:00:00
12:13:14
but giving no output instead.
Aniela Marczak
Greenhorn

Joined: Aug 04, 2011
Posts: 6

I also tried this code, and the output was exactly what you said you expect.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

And here as well.
orgil khatanbaatar
Greenhorn

Joined: Aug 05, 2011
Posts: 17
maybe I had my Netbeans having bad luck. I never saw it failing to work, though. Thank you so much. what else can be any technical reason?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unexpected result
 
Similar Threads
Runtime Error ... help plz
Catch Exception and decimal format?
What fields does java.util.Date.equals compare?
Using System.currentTimeMillis() method
Java help!!!!