public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println("123".substring(0,1));
		
		Set<Character> s = new HashSet(Arrays.asList('1'));
		Span s1 = new Span(2,3);
		Span s2 = new Span(2,6);
		Span s3 = new Span(5,5);
		Span s4 = new Span(1,2);
		Span s5 = new Span(10,12);
		
		LinkedList<Span> intervals = new LinkedList<Span>();
		intervals.add(s1);
		intervals.add(s2);
		intervals.add(s3);
		intervals.add(s4);
		intervals.add(s5);
		intervals.add(new Span(99,6));
//		intervals.add(new Span(-1,12));
		
		
		System.out.println(new MergeIntervals().merge(intervals));
		

	}