-
Help with a method
Last edited by NLS; 11-02-2005 at 12:21 PM.
-
First I would use two constructors, one to use as a default (F scale, 0 degrees), and one to override (either F or C scale, 0 degrees or -17 degrees). Also your going to need some if-conditionals to check if the scale is F or C, and if the range is correct for the problem.
Judging by the 'f' or 'F', 'c' or 'C', part, your going to need .toLowerCase() method in there somewhere. Obviously your going to need two input variables, one to hold the scale and one to hold the reading, and going to need to pass those variables to your constructor(s).
Similar Threads
-
Replies: 0
Last Post: 09-01-2005, 01:12 AM
-
Replies: 5
Last Post: 05-20-2002, 12:35 PM
-
By Jason West in forum VB Classic
Replies: 1
Last Post: 03-28-2002, 08:11 PM
-
By Alan Shiers in forum Java
Replies: 0
Last Post: 03-15-2002, 12:51 PM
-
Replies: 3
Last Post: 04-13-2001, 09:13 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks