title: How to add minutes to a date variable in java
body: <p>I have a date variable (endTime) with some value (eg : 10:40). I need to create a new variable by adding 10 minutes to endTime. How can I do it?</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>public static  String endTime = "";
  DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
  Calendar cal = Calendar.getInstance();
  
  endTime = timeFormat.format(cal.getTime());`
  </code></pre>