Name Generator in Java
Submitted by Sherwin14 on Monday, September 16, 2013 - 15:49.
Language
This is a simple java program that will generate the letter or a word that you have been inputted into a bigger letter or word using asterisk (*) symbol.
Sample source code:
- import java.util.*;
- /**
- * @title Name generator :D
- *@version 1.0
- * @author Sherwin Pitao
- *
- */
- "******\n* *\n******\n* *\n******\n\n",/*B*/
- " *****\n* * \n*\n* * \n *****\n\n",/*C*/
- "******\n* *\n* *\n* *\n******\n\n",/*D*/
- "*******\n*\n*****\n*\n*******\n\n",/*E*/
- "*******\n*\n*****\n*\n*\n\n",/*F*/
- " *****\n* \n* ***\n* *\n *****\n\n",/*G*/
- "* *\n* *\n*******\n* *\n* *\n\n",/*H*/
- "*******\n *\n *\n *\n*******\n\n",/*I*/
- "*******\n *\n *\n* *\n *****\n\n",/*J*/
- "* *\n* *\n**\n* *\n* *\n\n",/*K*/
- "*\n*\n*\n*\n*******\n\n",/*L*/
- "* *\n** **\n* * *\n* *\n* *\n\n",/*M*/
- "* *\n** *\n* * *\n* * *\n* *\n\n",/*N*/
- " *****\n* *\n* *\n* *\n *****\n\n",/*O*/
- "******\n* *\n* *\n******\n*\n*\n\n",/*P*/
- " *****\n* *\n* * *\n* **\n ***** *\n\n",/*Q*/
- "******\n* *\n* *\n******\n* *\n* *\n\n",/*R*/
- " *****\n* \n *****\n* *\n *****\n\n",/*S*/
- "*******\n *\n *\n *\n *\n\n",/*T*/
- "* *\n* *\n* *\n* *\n *****\n\n",/*U*/
- "* *\n* *\n* *\n * * \n *\n\n",/*V*/
- "* *\n* *\n* * *\n* * * *\n * *\n\n",/*W*/
- "* *\n * *\n * \n * *\n* *\n\n",/*X*/
- "* *\n * *\n * \n *\n *\n\n",/*Y*/
- "*******\n *\n *\n *\n *\n*******\n\n"/*Z*/};
- "p","q","r","s","t","u","v","w","x","y","z"};
- int ctr = inputedName.charAt(0);
- for(ctr=0;ctr<inputedName.length();ctr++){
- Wordd=inputedName.charAt(ctr)+"";
- for(int r=0;r<pla.length;r++){
- if(Wordd.compareTo(pla[r])==0){
- }
- }
- }
- }
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 260 views