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); + } +} + + + 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/vcs.xml b/ch05/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/ch05/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ch05/.idea/workspace.xml b/ch05/.idea/workspace.xml new file mode 100644 index 0000000..069ed88 --- /dev/null +++ b/ch05/.idea/workspace.xml @@ -0,0 +1,509 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +