aspose file tools*
The moose likes Beginning Java and the fly likes Example of an Assumption? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Example of an Assumption?

Jasper Vader
Ranch Hand

Joined: Jan 10, 2003
Posts: 284
Just wondering if anyone would be kind enough to show me an example of an assumption in Java, with a bit of code?
thanks


giddee up
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Give us a hint as to the context that you mean.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Is it possible you're thinking of "assertion" rather than "assumption"?


"I'm not back." - Bill Harding, Twister
Jasper Vader
Ranch Hand

Joined: Jan 10, 2003
Posts: 284
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Dec 10, 2001
Posts: 7023
You may want to take a look at The September JavaRanch Newsletter.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
It looks like this conversation is being continued here.
 
 
subject: Example of an Assumption?