Have the following snippet of code:
String StampDutyRate;
double SellingPrice;
Scanner input = new Scanner(System.in);
System.out.println();//This type of code just creates a blank
line in the screen output, to make reading the screen output easier.
//Input the users Selling Price using Scanner
System.out.println("Please enter your properties Selling Price
EUR " );//Any code in Green Colour will appear on screen
SellingPrice = input.nextDouble();
System.out.println();
System.out.println("Your Selling Price EUR " + SellingPrice );
//This shows the entered EUR value
System.out.println();
//Calculate the Stamp Duty Rate using the "if" then "else"
conditional Statement
I have tried a number of ways to get "SellingPrice =
input.nextDouble();" to appear on the same line on screen as
"System.out.println("Please enter your properties Selling Price EUR "
);"
like ---Screen---
Please enter your properties Selling Price EUR *someuserinput*
(someuserinput is just by way of explanation)
but keep getting syntax errors.
Is it doable|?
Frank
PS: Compiled of Fedora 10, openjdk and BlueJ
--
aMSN: Frankly3D
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!