update:demo12

This commit is contained in:
dichgrem
2026-01-16 16:19:52 +08:00
parent 1bbfe0e546
commit a7334f14dc
6 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package com.study.demo12;
public class TestCodeGenerator {
public static void main(String[] args) {
CodeGenerator loginGenerator = new LoginCodeGenerator();
CodeGenerator paymentGenerator = new PaymentCodeGenerator();
System.out.println("登录验证码: " + loginGenerator.generate());
System.out.println("支付校验码: " + paymentGenerator.generate());
}
}