In my code,under the OurUncaughtExceptionHandler class, I have literal strings in place for the StringIndexOutOfBounds info. I need help getting this string from the parameters. If anyone has a solution I could look at, I would appreciate it. Thanks.
package com.codegym.task.task22.task2201;
public class Task implements Runnable {
private String initialString;
private Solution solution;
public Task(Solution solution, String initialString) {
this.solution = solution;
this.initialString = initialString;
}
@Override
public void run() {
String name = Thread.currentThread().getName();
String str = this.initialString;
do {
System.out.println(name + str);
} while ((str = solution.getPartOfString(str, name)) != null || !str.isEmpty());
}
}