The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

ATTN: wiredog by cybergeek2006-11-19 12:55:59
  Aaaah by wiredog2002-09-26 16:40:57
    just looked at the code we were given to start: by cybergeek 2002-09-26 16:50:43
it's got bounds checking built in, methinks:
InputBox inbox = new InputBox(window);
int width = inbox.getInteger("Enter the rectangle's width (5-100):");
width = Math.min(width, 100);
width = Math.max(width, 5);
int height = inbox.getInteger("Enter the rectangle's height (5-100):");
height = Math.min(height, 100);
height = Math.max(height, 5);


ya? so it's my professor's fault for not making ME do these things, ya? :)
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)