title: Determine if date is weekday/weekend java
body: <p>I'm trying to make it compare what day of the week it is and if it is a weekend then perform an action(not implemented yet) but if I put in today's date 25/11/2016 or tomorrows which is a Saturday 26/11/2016, it still only prints "WEEKDAY". Its not working and I'm stuck :/</p>
  
  <pre><code>public static void calcDatePrice(String a, boolean b, double c){
      System.out.println("CALC PRICE METHOD: " + a);
      Double price;
      Date d1 = new Date(a);
  
      Calendar c1 = Calendar.getInstance();
      c1.setTime(d1);
      System.out.println(c1.get(Calendar.DAY_OF_WEEK));
  
      if ((c1.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) 
              || (Calendar.DAY_OF_WEEK == Calendar.SUNDAY)) {  //or sunday   
      System.out.println("WEEKEND PRICE");
      }else {
      System.out.println("WEEKDAY");
      }
  }
  </code></pre>