Skip to content

Commit defbb6d

Browse files
author
Roy
committed
Small example change
1 parent d7e26c8 commit defbb6d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/com/interview/misc/DayDifferenceBetweenTwoDates.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
/**
44
* Number of days between two valid dates
5+
* The idea is to get number of days from 00/00/0000 for both the dates and find the
6+
* difference between them.
57
*/
68
public class DayDifferenceBetweenTwoDates {
79

‎src/com/interview/misc/DifferenceBetweenTwoTime.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String args[]){
2727
DifferenceBetweenTwoTime dbtt = new DifferenceBetweenTwoTime();
2828
int time = dbtt.diff(1400, 1645);
2929
System.out.println(time);
30-
time = dbtt.diff(1200, 1200);
30+
time = dbtt.diff(1223, 1246);
3131
System.out.println(time);
3232
time = dbtt.diff(1500, 1620);
3333
System.out.println(time);

0 commit comments

Comments
 (0)