I have 3 columns in a table, time\_in, time\_out, new\_time\_out

In getting the time\_in, I used the following codes:

```
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);

```

In time\_out:

```
if(a.equals("1")) {
            b = ((hour+1)+":"+minute+":"+second);
        }
        else if(a.equals("2")) {
            b = ((hour+2)+":"+minute+":"+second);
        }

```

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:

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.