← Unit 1 · all exercises
Saved in this browser only

A Windows path

Print C:\ followed by the folder name. For Users, print exactly: C:\Users — a single backslash inside a String is written \\.

void path(String folder)

Solution.java
Loading editor…
Results

Examples

  • path(Users) → C:\Users
  • path(Windows) → C:\Windows

There are also 2 hidden tests you can't see. Solve the problem, not the examples.