title: Want to get day of a week as a string, But giving wrong day
body: <p>I tried to get the day as a string by using the following code. But it returns wrong string. Can I fix it with this code.</p>
  
  <pre><code>private String getDayOfWeek(int value){
      String day = "";
      switch(value){
      case 1:
          day="Sunday";
          break;
      case 2:
          day="Monday";
          break;
      case 3:
          day="Tuesday";
          break;
      case 4:
          day="Wednesday";
          break;
      case 5:
          day="Thursday";
          break;
      case 6:
          day="Friday";
          break;
      case 7:
          day="Saturday";
          break;
      }
      return day;
  </code></pre>
  
  <p>I implements it as</p>
  
  <pre><code>Calendar c = Calendar.getInstance();    
  String dayOfWeek = getDayOfWeek(Calendar.DAY_OF_WEEK);
  System.out.println(dayOfWeek);
  </code></pre>