Skip to content

Instantly share code, notes, and snippets.

View amcohoon's full-sized avatar

Aidan M. amcohoon

View GitHub Profile
import java.util.Scanner;
public class Decompose
{
public static void substringDecompose()
{
Scanner inputScan = new Scanner(System.in);
String userInput = inputScan.next();
int inputLength = userInput.length();
System.out.println("Please enter a word: ");
for(int i=1;i<=inputLength;i=i+1)