-
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: "));
-
Last edited by srekcus; 02-07-2006 at 11:57 PM.
Similar Threads
-
By Martin in forum VB Classic
Replies: 22
Last Post: 12-03-2001, 03:53 AM
-
By Khalizan in forum VB Classic
Replies: 1
Last Post: 11-28-2001, 01:32 AM
-
By James Barbetti in forum ASP.NET
Replies: 2
Last Post: 11-06-2001, 01:13 PM
-
By John M. in forum Database
Replies: 0
Last Post: 05-17-2001, 03:01 PM
-
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
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