develop a java console application that either overhaul or automate it.
Implement the following java concept in your solution and highlight in your documentation or code where you did it: and explain the steps
1. Class and Object
2. File and Stream
3. Exception Handling
public class Sol {
public static void main() {
Sol.run();
}
public void run() {
myList.stream()
.map(item -> {
try {
return doSomething(item);
} catch (MyException e) {
throw new RuntimeException(e);
}
})
.forEach(System.out::println);
}
}
Comments
Leave a comment