Help with a method


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Help with a method

  1. #1
    Join Date
    Oct 2005
    Posts
    8

    Help with a method

    Thanks.
    Last edited by NLS; 11-02-2005 at 12:21 PM.

  2. #2
    Join Date
    Sep 2005
    Posts
    74
    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

  1. jdi popframes method
    By caid in forum Java
    Replies: 0
    Last Post: 09-01-2005, 01:12 AM
  2. Replies: 5
    Last Post: 05-20-2002, 12:35 PM
  3. GetRows method
    By Jason West in forum VB Classic
    Replies: 1
    Last Post: 03-28-2002, 08:11 PM
  4. depricated method needs changing
    By Alan Shiers in forum Java
    Replies: 0
    Last Post: 03-15-2002, 12:51 PM
  5. 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center