I need some help with lists, im new to Java and have been struggling with them. This is what i need to do.

private SimpleList<Integer> searchLine(String line, String s) {
//Build a list of the beginning positions of s in line

}

private String buildLine(SimpleList<Integer> lineNums) {
//Build a String from the integers in lineNums

}

Could someone please help me?!