From b202433772ade61724052684f8880a5b7cffe19b Mon Sep 17 00:00:00 2001 From: Chandlera Date: Thu, 26 Jul 2018 08:13:27 -0700 Subject: [PATCH 1/3] Learned Hello World and strings --- ch04/HelloMethod.java | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ch04/HelloMethod.java diff --git a/ch04/HelloMethod.java b/ch04/HelloMethod.java new file mode 100644 index 0000000..d0e9568 --- /dev/null +++ b/ch04/HelloMethod.java @@ -0,0 +1,33 @@ +public class HelloMethod +{ + public static void main(String[] args) + { + String firstName = "Amanda"; + String secondName = "Wilma"; + String lastName = "Flinestone"; + String cat = " meow!"; + + + printHelloWorld(firstName, lastName); + printOhNo(cat); + printHelloWorld(secondName, lastName); + printOhNo(cat); + + + } + + + public static void printHelloWorld(String fname, String lName) + { + System.out.println("Hello World " + fname + " " + lName); + + } + + public static void printOhNo(String cat) + { + System.out.println("Oh no!!!!!!!!!!!" + cat); + } +} + + + From 676b858e0eb86549e8dc29e8fab9fa9edd518173 Mon Sep 17 00:00:00 2001 From: Chandlera Date: Thu, 26 Jul 2018 14:14:12 -0700 Subject: [PATCH 2/3] comparison exercise --- ch05/.idea/misc.xml | 6 + ch05/.idea/modules.xml | 8 ++ ch05/.idea/workspace.xml | 255 +++++++++++++++++++++++++++++++++++++++ ch05/Comparison.java | 24 ++++ ch05/ch05.iml | 11 ++ 5 files changed, 304 insertions(+) create mode 100644 ch05/.idea/misc.xml create mode 100644 ch05/.idea/modules.xml create mode 100644 ch05/.idea/workspace.xml create mode 100644 ch05/Comparison.java create mode 100644 ch05/ch05.iml diff --git a/ch05/.idea/misc.xml b/ch05/.idea/misc.xml new file mode 100644 index 0000000..e208459 --- /dev/null +++ b/ch05/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ch05/.idea/modules.xml b/ch05/.idea/modules.xml new file mode 100644 index 0000000..8aa42e1 --- /dev/null +++ b/ch05/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ch05/.idea/workspace.xml b/ch05/.idea/workspace.xml new file mode 100644 index 0000000..9ce76d2 --- /dev/null +++ b/ch05/.idea/workspace.xml @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +