Below Java code works in Windows machine
filepath = "euro\football\france\winners.txt";
String[] values = StringUtils.split(filePath, "\\");
if (values != null && values.length >= 4) {
} else {
//error
}
But facing issue in linux while executing the code. if loop is not executing, else loop is executing.
Do we need to give split as "\" or "/" for linux
String[] values = StringUtils.split(filePath, "\\");
Any suggestion will be helpful