DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    67

    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
    Posts
    75
    //nevermind
    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

Bookmarks

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


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


Sponsored Links