For this task you will create a program that prints out a user-specified string. Then, on the next line, it prints out the string again, all except the last character. It continues printing the string with one less character on each line, until the last line has only the first character of the string.

import java.util.Scanner;

public class StringFun {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);
String userInput, newString;
int stringLength;

// Prompt user to enter a word
System.out.print("Enter a word: ");

// Read user input
userInput = input.next();
}}

This is what I have so far...