You just have to use the recursion for counting up. Then, when the function returns, you are on your way down. This can be achieved with:
public void countUpAndDown(int start, int end) {
System.out.println(start);
if (end == start) return;
countUpAndDown(start+1, end);
System.out.println(start);
}