Created
October 7, 2012 17:53
-
-
Save applegateaustin/3849064 to your computer and use it in GitHub Desktop.
Print the users string so that it has all the letters of the string vertically and horizontally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*File Name: <CubeString.java> | |
Author: <Austin Applegate> | |
KUID: <2210758> | |
Email Address: <theappler@gmail.com> | |
Homework Assignment Number: < 2 > | |
Description: <Given a word from the user the program will make a cube out of it where the word will be spelled out vertically and horizontally> | |
Last Changed: <9/30/12> | |
*/ | |
import java.util.Scanner; | |
public class CubeString { | |
public static void main(String[] args){ | |
Scanner keyboard = new Scanner(System.in); | |
System.out.println("Enter a String:"); | |
String userInput = keyboard.nextLine(); | |
int stringLength = userInput.length(); | |
//positionOfChars = userInput.substring(0, stringLength); | |
for(int i = 0; i < stringLength; i++){ | |
char letter = userInput.charAt(i); | |
System.out.println(letter);} | |
for(int j = 0; j < stringLength; j++){ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment