convert string th path in java code example Example: java string to path Path path = Paths.get(textPath);