Hii, i just started with my path but i got stuck on this exercise, the third part i cannot understand how to do it, would you like to give me some ideas or help, code below
public class LogLevels {
public static String message(String logLine) {
return logLine.split(":", 2)[1].trim();
}
public static String logLevel(String logLine) {
return logLine.split("\\[|\\]", 3)[1].toLowerCase();
}
// I got problems here xd
public static String reformat(String logLine) {
return logLine.format("(" logLine.split("\[|\]", 3)[1]")").toLowerCase());
}
}