17. Reactive Programming with Java Flow
Activity 1: Let NumberProcessor Format Values as Integers
Solution
- Change the processors published item type to Integer. Make the necessary changes in the implementation to match the new type:
Activity1.java
53 @Override 54 public void onComplete() { 55 System.out.println("onComplete()"); 56 } 57 }); 58 } 59 60 61 private static String[] getStrings() { 62 String filePath = "res/numbers.txt"; 63 ...