alex rodriguez
2013-03-20 17:34:56 UTC
Hi, I am trying to solve the following problem. I would like to use the following program which takes an input of initials of somebody's name and displays them to standard output and extend this to output the initials to nine lines tall using characters of my choosing an example character could be "*". Does Java have a function that performs the operation of enlarging the standard output using characters of a persons choosing? Or Can someone write some simple code that a novice could understand to perform a similar function?
----------------------------------------------------------
/**
* This program will print your initials to standard output that are nine
*lines tall. Each letter will be made up of *'s. This file requires the
*TextIO file to work. The TextIO file is available for viewing here:
*http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java
*/
public class Initials {
static String userInput; //string declaration
public static void main(String[] args) {
System.out.print("Please type in your Initials: ");
userInput = TextIO.getWord();
System.out.print("Your initials are ");
System.out.print(userInput);
} // end of main()
} // end of class Initials
-----------------------------------------------------------
Cheers,
Alex
----------------------------------------------------------
/**
* This program will print your initials to standard output that are nine
*lines tall. Each letter will be made up of *'s. This file requires the
*TextIO file to work. The TextIO file is available for viewing here:
*http://math.hws.edu/eck/cs124/javanotes4/source/TextIO.java
*/
public class Initials {
static String userInput; //string declaration
public static void main(String[] args) {
System.out.print("Please type in your Initials: ");
userInput = TextIO.getWord();
System.out.print("Your initials are ");
System.out.print(userInput);
} // end of main()
} // end of class Initials
-----------------------------------------------------------
Cheers,
Alex