• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected result

 
orgil khatanbaatar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It seems to be correct. but giving no output. Why?
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
orgil khatanbaatar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 KÄ…cka
Greenhorn
Posts: 6
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also tried this code, and the output was exactly what you said you expect.
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And here as well.
 
orgil khatanbaatar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic