title: Adding number to a string?
body: <p>I have 3 columns in a table, time_in, time_out, new_time_out</p>
  
  <p>In getting the time_in, I used the following codes:</p>
  
  <pre><code>Calendar cal= new GregorianCalendar();        
                  int hour=cal.get(Calendar.HOUR);
                  int minute=cal.get(Calendar.MINUTE);
                  int second=cal.get(Calendar.SECOND);
  
                  label_time.setText(hour+":"+minute+":"+second);
  </code></pre>
  
  <p>In time_out:</p>
  
  <pre><code>if(a.equals("1")) {
              b = ((hour+1)+":"+minute+":"+second);
          }
          else if(a.equals("2")) {
              b = ((hour+2)+":"+minute+":"+second);
          }
  </code></pre>
  
  <p>Where b is my time out. I declared it as a string. Now for the new_time_out, I want it to be like, if the user chooses 1, It will be added to the hour of the time_out. Same if he chooses 2. For example:</p>
  
  <p>My time_out(b) is 9:45:21 and the user chooses 2. The new_time_out will be 11:45:21. My time out is also a string.</p>