System.out.println(name.substring(0, 4));// last index does not count so we need to add 1 more index to the last // index/end index System.out.println(name.substring(5, 8)); ...
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana