Files
javaSE-0113/javaSE-day07/src/com/inmind/functional_interface02/Demo15.java

15 lines
484 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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";
}
}