public class Main {/**来 自 时 代 J a v a - nowjava.com**/
public static void main(String[] arguments) {
float total = 14000;
System.out.println("Original investment: $" + total);
// Inceases by 40 percent the first year
total = total + (total * .4F);
System.out.println("After one year: $" + total);
// Loses $1,500 the second year
total = total - 1500F;
System.out.println("After two years: $" + total);
// Increases by 12 percent the third year
total = total + (total * .12F);
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。