private static int getMainNumber(int mainNumber, String dptID)
	{
		return mainNumber != 0 ? mainNumber : Integer.parseInt(dptID.substring(0, dptID
			.indexOf('.')));
	}
private static int getMainNumber ( int mainNumber , String dptID ) { return mainNumber != 0 ? mainNumber : Integer . parseInt ( dptID . substring ( 0 , dptID . indexOf ( '.' ) ) ) ; }
throws NumberFormatException