First, if this is in the wrong spot, I'm sorry, I didn't see any other option where to put this.

School Project is to print out all the substrings of an user inputted word going from the longest to the individual letters. I've gotten it to the point where it prints the word and removes the last letter as it goes along. Example is the word bowling. This is the following output:
bowling
bowlin
bowli
bowl
bow
bo
b

What i can make it do is the this output:
bowling
bowlin
owling
bowli
owlin
wling
and so forth

I've been working on this for 3 days now and completely lost and if anyone has suggestions, i'd be very grateful. here is my code that works so far.

[code]
import java.util.Scanner;

public class SubsOfStrings {

public static void main(String[] args) {
Scanner kb = new Scanner(System.in);

System.out.print("Please enter a word: ");
String word = kb.nextLine();

int len = word.length();
for (int i=len; i>=0; i--){

System.out.println(word.substring(0, i));


}


}

}
[end code]