Removed spaces from top-level directory names.

Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
This commit is contained in:
Chris Reuter
2021-11-21 18:30:21 -05:00
parent df2e7426eb
commit d26dbf036a
1725 changed files with 0 additions and 0 deletions

3
63_Name/java/README.md Normal file
View File

@@ -0,0 +1,3 @@
Original source downloaded [from Vintage Basic](http://www.vintage-basic.net/games.html)
Conversion to [Oracle Java](https://openjdk.java.net/)

55
63_Name/java/main.class Normal file
View File

@@ -0,0 +1,55 @@
import java.util.Arrays;
import java.util.Scanner;
public class main {
public static void printempty() { System.out.println(" "); }
public static void print(String toprint) { System.out.println(toprint); }
public static void main(String[] args) {
print(" NAME");
print(" CREATIVE COMPUTING MORRISTOWN, NEW JERSEY");
printempty();
printempty();
print("HELLO.");
print("MY NAME iS CREATIVE COMPUTER.");
print("WHATS YOUR NAME? (FIRST AND LAST)");
Scanner namesc = new Scanner(System.in);
String name = namesc.nextLine();
String namereversed = new StringBuilder(name).reverse().toString();
char namesorted[] = name.toCharArray();
Arrays.sort(namesorted);
printempty();
print("THANK YOU, " + namereversed);
printempty();
print("OOPS! I GUESS I GOT IT BACKWARDS. A SMART");
print("COMPUTER LIKE ME SHOULDN'T MAKE A MISTAKE LIKE THAT!");
printempty();
printempty();
print("BUT I JUST NOTICED YOUR LETTERS ARE OUT OF ORDER.");
print("LET'S PUT THEM IN ORDER LIKE THIS: " + new String(namesorted));
printempty();
printempty();
print("DON'T YOU LIKE THAT BETTER?");
printempty();
Scanner agreementsc = new Scanner(System.in);
String agreement = agreementsc.nextLine();
if (agreement.equalsIgnoreCase("yes")) {
print("I KNEW YOU'D AGREE!!");
} else {
print("I'M SORRY YOU DON'T LIKE IT THAT WAY.");
printempty();
print("I REALLY ENJOYED MEETING YOU, " + name);
print("HAVE A NICE DAY!");
}
}
}