search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
109 views
asked Geek 15.3k points 16 41 63

1 Answer

0 votes
public class MainClass {
  public static void main(String[] a) {
    String oldValue = System.clearProperty("java.class.path");
    System.setProperty("user.dir", "C:/MyProg");
    System.out.println(System.getProperty("user.dir"));
  }
}
output
C:/MyProg
answered Sr Member 4.8k points 10 25 31

Related questions

0 votes
1 answer 115 views
115 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 37 views
37 views
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 117 views
117 views
asked augustaina Sr Member 4.8k points 10 25 31
1 vote
1 answer 21 views
21 views
asked john Guru 27.1k points 31 50 97
1 vote
1 answer 24 views
24 views
how can we implement the validation on email by using struts frameworks?
asked keem Expert 13.2k points 27 40 59
...