Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

How to print values in pre defined reciept


Hi,

In my project i have to print some values in a pre defined receipt.
can anyone tell me how to do this...

Example:

Employee Receipt-
Name:
Age:
Address:
Designation:
Salary:

the above information will be printed on a peice of paper. what i have to do is, to print the values in the right place....

Employee Receipt-

Name: XYZ
Age: XYZ
Address:XYZ
Designation:XYZ
Salary:XYZ

How can i do this in JAVA. plz repl
Thanx in advance!!!