Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Example of an Assumption?

 
Jasper Vader
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Report post to moderator
Just wondering if anyone would be kind enough to show me an example of an assumption in Java, with a bit of code?
thanks
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
Give us a hint as to the context that you mean.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Is it possible you're thinking of "assertion" rather than "assumption"?
 
Jasper Vader
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Report post to moderator
oops, i did mean assertion, um, well yes. Assertion.
An example of an assertion in any context, hopefully one i can understand.
thanks in advance
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Jasper,
Have a look at the following example. This following method deletes an empty directory:

You will find more details in the following Java 1.4 guide:
Programming With Assertions
Good luck
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
You may want to take a look at The September JavaRanch Newsletter.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
It looks like this conversation is being continued here.
 
    Bookmark Topic Watch Topic
  • New Topic