Initial commit
This commit is contained in:
21
Exercise/src/Chapter3/PaymentResult.java
Normal file
21
Exercise/src/Chapter3/PaymentResult.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package Chapter3;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class PaymentResult {
|
||||
public static void main(String[] args) {
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
System.out.println("请输入支付金额:");
|
||||
double paymentAmount = scanner.nextDouble();
|
||||
System.out.println("\n支付成功");
|
||||
System.out.println("京东商城");
|
||||
System.out.printf("%.1f元\n", paymentAmount);
|
||||
System.out.println("优惠金额\t\t10.00元");
|
||||
System.out.println("支付方式\t\t工商银行储蓄卡(5009)");
|
||||
System.out.println("交易时间\t\t2018-11-27 00:34:02");
|
||||
System.out.println("订单编号\t\t893412929");
|
||||
|
||||
scanner.close();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user