Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2607
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2013-03-20 10:34 -0700 |
| Message-ID | <760ab6c0-6f23-424d-9b6f-c8bf30c65a6a@googlegroups.com> (permalink) |
| Subject | How do you print to standard output letters letters of 9 lines tall using characters of your choosing? |
| From | alex rodriguez <dralex73@gmail.com> |
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
Back to comp.lang.java.help | Previous | Next — Next in thread | Find similar | Unroll thread
How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-20 10:34 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Lew <lewbloch@gmail.com> - 2013-03-20 12:18 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Roedy Green <see_website@mindprod.com.invalid> - 2013-03-20 20:23 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-22 03:49 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? alex rodriguez <dralex73@gmail.com> - 2013-03-22 03:58 -0700
Re: How do you print to standard output letters letters of 9 lines tall using characters of your choosing? Lew <lewbloch@gmail.com> - 2013-03-22 13:44 -0700
csiph-web