跳转到主要内容
eLearner.app
JAVA STREAM REFINERY

Java Stream Refinery:数据管道

使用 Java Stream API 配置收集操作以清理、转换和聚合数据流。

PIPELINE DIRECTIVE

过滤交易列表,仅保留金额大于 100 的交易,并将其描述转换为大写。使用collect 将收集的结果返回到字符串列表中。

Data Structure
class Transaction {
  int amount;
  String description;
  int getAmount();
  String getDescription();
}
PIPELINE FLOW MONITOR
filtermapINOUT

Stuck?

Learn the fundamental concepts in the Java course to solve this challenge.

JAVA PIPELINE EDITOR

Write Java Stream API code.

正在加载编辑器...