• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Stack in Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple recursive method:

If the method is performed, there are changes in Stack.
I'd like to monitor these changes in Stack and display them on the monitor.
Is there any possibility?
thank all
 
Saloon Keeper
Posts: 14488
325
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch. Do you mean the call stack? Have you tried running a debugger?
 
Marshal
Posts: 76802
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome again

Yes, I think you are right, Stephan, that MK would like to see the call stack. That might also be possible using the debug facility on an IDE.

Please don't use coloured text because some people cannot read it. It would have been better to use code tags, so I changed the tags and they look better now Unfortunately they show that you haven't indented the code correctly. The old Sun style guide recommends not to mix if‑else and return, if it is possible to write code like this:-You know that your method won't return correct factorials for arguments > 21? Factorials increase quickly enough that you will suffer an overflow error.
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic