подскачите что не так, уже несколько способов получить эту строку попробовал, как будто и не в ней дело, хотя ошибка в четвертом пункте
package com.javarush.task.task22.task2203;
/*
Между табуляциями
*/
public class Solution {
public static String getPartOfString(String string) throws TooShortStringException {
try {
String[] s1 = string.split("\t");
if (s1.length < 3) {
throw new TooShortStringException();
}
if (string == null) {
throw new TooShortStringException();
}
String s = string.substring(string.indexOf("\t"), string.indexOf("\t", string.indexOf("\t") + 1)).trim();
return s;
}
catch (Exception e) {
throw new TooShortStringException();
}
}
public static class TooShortStringException extends Exception {
}
public static void main(String[] args) throws TooShortStringException {
System.out.println(getPartOfString("\tJavaRush - лучший сервис \tобучения Java\t."));
}
}