DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006

    Incompatibilty error

    how do I fix this? I am getting an incompatibility error at the if (busUtility.......) spot. Works with just (busUtility = 1)

    String busUtility;
    double carPrice;
    int percFrom;
    int percTo;
    int loanYears;
    int selOption;

    busUtility =JOptionPane.showInputDialog(null,"Claire Baird Business Utilities\n1. Car Loan Financing\n2. Company Account Information\n3. Payroll Computation\n0. Exit\nEnter Choice:");

    //selOption = (busUtility);
    //if(selOption == 1||l||L)

    if (busUtility == 1||l||L)

    carPrice = Double.parseDouble(JOptionPane.showInputDialog("Please enter price of car (00.00) <0 for Quick exit>: "));
    percFrom = Integer.parseInt(JOptionPane.showInputDialog("Please enter interest rate (integer %) from: "));
    percTo = Integer.parseInt(JOptionPane.showInputDialog("Please enter interest rate (integer %) to: "));
    loanYears = Integer.parseInt(JOptionPane.showInputDialog("Please enter loan period, from 2 years to: "));

  2. #2
    Join Date
    May 2005
    Last edited by srekcus; 02-07-2006 at 11:57 PM.

Similar Threads

  1. Writing in HKEY_LOCAL_MACHINE...Access is denied
    By Martin in forum VB Classic
    Replies: 22
    Last Post: 12-03-2001, 03:53 AM
  2. Returning errors from SQL Server Stored Procs
    By Khalizan in forum VB Classic
    Replies: 1
    Last Post: 11-28-2001, 01:32 AM
  3. Re: Error handling in components called from ASP
    By James Barbetti in forum ASP.NET
    Replies: 2
    Last Post: 11-06-2001, 01:13 PM
  4. DTS/linked server error #6
    By John M. in forum Database
    Replies: 0
    Last Post: 05-17-2001, 03:01 PM
  5. Winsock32, Connect fails to connect to a peer
    By Chris.G in forum VB Classic
    Replies: 4
    Last Post: 11-13-2000, 03:16 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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.