Decimal Separated String List as Tree in Java : Please consider the following data, which i am getting as list.
<code>{"20.01","20.01.01","20.01.01.01","20.01.02","20.01.02.01","20.01.02.02","20.02","20.02.01","20.02.01.01","20.02.02","20.02.02.01","20.02.02.02","20.02.02.02.01","20.02.02.02.01.01","20.02.02.02.02","20.02.02.02.03"}</code>

I want to organize it tree shape using core java like as follows. 
<code>
20.01 
	20.01.01 
		20.01.01.01 
	20.01.02 
		20.01.02.01 
		20.01.02.02 
20.02 
	20.02.01 
		20.02.01.01 
	20.02.02 
		20.02.02.01 
		20.02.02.02 
			20.02.02.02.01 
				20.02.02.02.01.01 
			20.02.02.02.02 
			20.02.02.02.03
</code>
Please let us know any simpler solution in java.