Re: Writing to a file and a TextArea
- From: Martin Bradley <martin@xxxxxxxx>
- Date: Sun, 26 Feb 2006 20:54:59 +0000 (UTC)
Hello there! The application I am building will calculate the total sales for
any number of salesmen.
switch(product)
{
case 1: sales = (amount * 2.98);
break;
case 2: sales = (amount * 4.50);
break;
case 3: sales = (amount * 9.98);
break;
case 4: sales = (amount * 4.49);
break;
case 5: sales = (amount * 6.87);
break;
default: sales = (0.00);
}
Hi,
I'd read the numbers you have from a properties file so that your not re-releasing code each time a price changes.
priceinfo = 2.98,4.50,9.98,4.49,6.87
regards,
Martin.
.
- References:
- Writing to a file and a TextArea
- From: zhah99
- Writing to a file and a TextArea
- Prev by Date: Re: Interesting loading image from jar problem
- Next by Date: Draw pointable / pickable lines, etc, how to?
- Previous by thread: Re: Writing to a file and a TextArea
- Next by thread: does java has any api for compressing files or folders by tar and gzip?
- Index(es):
Relevant Pages
|