Browse Source

删除文件 threadlocaldemo/ThreadLocal_Demo/demo02/src/com/woniu/transfer/web/AccountWeb.java

pull/1/head
马府强 2 years ago
committed by Gitee
parent
commit
e4572c2659
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
  1. 23
      threadlocaldemo/ThreadLocal_Demo/demo02/src/com/woniu/transfer/web/AccountWeb.java

23
threadlocaldemo/ThreadLocal_Demo/demo02/src/com/woniu/transfer/web/AccountWeb.java

@ -1,23 +0,0 @@
package com.itheima.transfer.web;
import com.itheima.transfer.service.AccountService;
public class AccountWeb {
public static void main(String[] args) {
// 模拟数据 : Jack 给 Rose 转账 100
String outUser = "Jack";
String inUser = "Rose";
int money = 100;
AccountService as = new AccountService();
boolean result = as.transfer(outUser, inUser, money);
if (result == false) {
System.out.println("转账失败!");
} else {
System.out.println("转账成功!");
}
}
}
Loading…
Cancel
Save