Skip to content

Instantly share code, notes, and snippets.

@codyduval
Last active December 12, 2015 12:48
Show Gist options
  • Select an option

  • Save codyduval/4774891 to your computer and use it in GitHub Desktop.

Select an option

Save codyduval/4774891 to your computer and use it in GitHub Desktop.
import java.util.Scanner;
import java.util.*;
public class go {
public static void main(String[] args) {
ArrayList<Character> wordCharacters = new ArrayList<Character>();
System.out.print("\nWelcome to Words with Chums");
Scanner consoleScanner = new Scanner(System.in);
System.out.print("\nType in your word to add to the board: ");
String word = consoleScanner.next();
for (int i = 0;i < word.length(); i++){
System.out.println(word.charAt(i));
wordCharacters.add(word.charAt(i));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment