From f9db890a32653912049934965cdd69a08adf0bf4 Mon Sep 17 00:00:00 2001
From: LiviMcK <137836813+LiviMcK@users.noreply.github.com>
Date: Tue, 19 Sep 2023 10:44:42 -0700
Subject: [PATCH] Lab 002 finished
---
.idea/misc.xml | 2 +-
src/{LikeAGirl.java => LikeABoy.java} | 16 ++++++++--------
2 files changed, 9 insertions(+), 9 deletions(-)
rename src/{LikeAGirl.java => LikeABoy.java} (83%)
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 03f397c..5d30da4 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/src/LikeAGirl.java b/src/LikeABoy.java
similarity index 83%
rename from src/LikeAGirl.java
rename to src/LikeABoy.java
index 30b943b..c3688df 100644
--- a/src/LikeAGirl.java
+++ b/src/LikeABoy.java
@@ -1,8 +1,8 @@
import java.util.Scanner;
-public class LikeAGirl {
+public class LikeABoy {
/**
- * "Like a Girl," Super Bowl XLIX (2015) - Like a Girl
+ * "Like a Girl," Super Bowl XLSX (2015) - Like a Girl
* @param args Command line arguments [The source file path, The target file path, ...]
**/
public static void main(String[] args) {
@@ -12,10 +12,10 @@ public static void main(String[] args) {
String scriptTemplateLine3 = "Show me what it looks like to fight, \"%s.\"";
String scriptTemplateLine4 =
"How do you think it affects them when somebody uses \"%s\" as an insult? Choice (good: %d, bad: %d) ";
- String scriptTemplateLine5 = "You answered %d%n%s.";
+ String scriptTemplateLine5 = "You answered 1.";
String ansGood = "Always wants to change that.%nEmotional Damage %f";
String ansBad = "Good for you.%nEmotional Damage %f";
- String likeAGirl = "Like a Girl";
+ String likeABoy = "Like a Boy";
// integer variable
int good = 0;
@@ -30,15 +30,15 @@ public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println(
- String.format(scriptTemplateLine1, likeAGirl));
+ String.format(scriptTemplateLine1, likeABoy));
// Example of using printf and platform specific line separator "%n" to
// format instead of String.format
- System.out.printf(scriptTemplateLine2, likeAGirl);
+ System.out.printf(scriptTemplateLine2, likeABoy);
- System.out.println(String.format(scriptTemplateLine3, likeAGirl));
+ System.out.println(String.format(scriptTemplateLine3, likeABoy));
- System.out.printf(scriptTemplateLine4, likeAGirl, good, bad);
+ System.out.printf(scriptTemplateLine4, likeABoy, good, bad);
int answer = Integer.parseInt(s.nextLine());