Hi guys,
pls, gimme a hint, as it's most likely I didn't get what kind of implementation they want.
Thank you!
package en.codegym.task.pro.task09.task0914;
/*
Path update
*/
public class Solution {
public static void main(String[] args) {
String path = "/usr/java/jdk1.8/bin";
String jdk13 = "jdk-13";
System.out.println(changePath(path, jdk13));
}
public static String changePath(String path, String jdk) {
return path.replaceAll(path.substring(10, 16), jdk);
}
}