如何将字符串映射到URI?
问题描述:
让我说我有一个字符串连接uris。
Let me say that I have a single string concatenated uris.
http://...[sp]http://...[sp]http://...
我正在尝试将每个拆分字符串转换为URI。
I'm trying to convert each split string to URIs.
Stream.of(string.split("\\s")).map(uri -> URI::new);
编译器投诉。
Cannot infer type-variable(s) R
我做错了什么?