进阶day06-Function中的andThen方法(整合工厂)

This commit is contained in:
2026-03-14 13:34:55 +08:00
parent a07cd63cc7
commit 2725c1d6ec

View File

@@ -0,0 +1,14 @@
package com.inmind.functional_interface02;
/*
请使用Function进行函数模型的拼接按照顺序需要执行的多个函数操作为
1. 将字符串截取数字年龄部分,得到字符串;
2. 将上一步的字符串转换成为int类型的数字(String->integer)
3. 将上一步的int数字累加100得到结果int数字。(integer->integer)
*/
public class Demo15 {
public static void main(String[] args) {
String str = "赵丽颖,20";
}
}