Original code:
public class Path { private String path; public Path(String path) { this.path = path; } public String getPath() { return path; } public Path cd(String newPath) { throw new UnsupportedOperationException("Waiting to be implemented."); } public static void main(String[] args) { Path path = new Path("/a/b/c/d"); System.out.println(path.cd("../x").getPath()); } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.