diff --git a/Java/Workspace/.metadata/.log b/Java/Workspace/.metadata/.log index 130724d..9df3564 100644 --- a/Java/Workspace/.metadata/.log +++ b/Java/Workspace/.metadata/.log @@ -365,3 +365,31 @@ Binding(COMMAND+SHIFT+T, ,,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,,,system) +!SESSION 2020-11-04 19:26:02.417 ----------------------------------------------- +eclipse.buildId=4.17.0.I20200902-1800 +java.version=11.0.8 +java.vendor=Oracle Corporation +BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US +Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/Casey/.eclipse_keyring +Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/Casey/.eclipse_keyring + +!ENTRY org.eclipse.jface 2 0 2020-11-04 19:26:28.755 +!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. +!SUBENTRY 1 org.eclipse.jface 2 0 2020-11-04 19:26:28.756 +!MESSAGE A conflict occurred for COMMAND+SHIFT+T: +Binding(COMMAND+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, + Open a type in a Java editor, + Category(org.eclipse.ui.category.navigate,Navigate,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@2e6b379c, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) +Binding(COMMAND+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, + , + Category(org.eclipse.lsp4e.category,Language Servers,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5e7e7a7e, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0b323a59b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0b323a59b18001b1f39975547228eb6 deleted file mode 100644 index dd578bc..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/2b/b0b323a59b18001b1f39975547228eb6 +++ /dev/null @@ -1,23 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - void setSpeed(int speed) { // behavior, methods, inputs, outputs, name | int speed - local variable - this.speed = speed; // what ever value comes in method, set equal to instance var - System.out.println(speed); // grabs local variable (int speed) - System.out.println(this.speed); // grabs speed from member variable (private int) - } - - int getSpeed() { - return this.speed; - - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/31/204a4cb59d18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/31/204a4cb59d18001b1f39975547228eb6 deleted file mode 100644 index 717e7ef..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/31/204a4cb59d18001b1f39975547228eb6 +++ /dev/null @@ -1,20 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - public int getSpeed() { - return speed; - } - - public void setSpeed(int speed) { - this.speed = speed; - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/35/507ea7429c18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/35/507ea7429c18001b1f39975547228eb6 deleted file mode 100644 index e2eaa00..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/35/507ea7429c18001b1f39975547228eb6 +++ /dev/null @@ -1,24 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - void setSpeed(int speed) { // behavior, methods, inputs, outputs, name | int speed - local variable - this.speed = speed; // what ever value comes in method, set equal to instance var - // System.out.println(speed); // grabs local variable (int speed) - // System.out.println(this.speed); // grabs speed from member variable (private - // int) - } - - int getSpeed() { - return this.speed; - - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/39/806a8fe79d18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/39/806a8fe79d18001b1f39975547228eb6 deleted file mode 100644 index 7352f4a..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/39/806a8fe79d18001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(100);// showing how state of object can change across duration - // System.out.println(ducati.getSpeed()); - - //honda.setSpeed(80); - // System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/3b/00f009c5111f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/3b/00f009c5111f001b1394cb98f19e30f5 new file mode 100644 index 0000000..446bd94 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/3b/00f009c5111f001b1394cb98f19e30f5 @@ -0,0 +1,38 @@ +package com.tutorials.oops; + +public class MotorBike { + // state + private int speed; // create instance variable // private - cannot be accessed outside class + + MotorBike(int speed) { // Uses a constructor. Needs the same name as the object + this.speed = speed; + } + + public int getSpeed() { + return speed; + } + + public void setSpeed(int speed) { + if (speed > 0) { + this.speed = speed; // encapsulation. validations on what can go into obj + } // validates that you set something above 0. + } + /* + * System.out.println(speed); System.out.println(this.speed); // the default + * value for a member variable is 0 this.speed = speed; } + */ + + public void increaseSpeed(int howMuch) { + this.speed = this.speed + howMuch; + } + + public void decreaseSpeed(int howMuch) { + setSpeed(this.speed - howMuch); + } + + // behavior + void start() { + System.out.println("Bike started"); + } + +} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/4c/30a007a59b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/4c/30a007a59b18001b1f39975547228eb6 deleted file mode 100644 index 1f04f26..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/4c/30a007a59b18001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(100);// showing how state of object can change across duration - System.out.println(ducati.getSpeed()); - - honda.setSpeed(80); - System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5/70bac8c09b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5/70bac8c09b18001b1f39975547228eb6 deleted file mode 100644 index 2236304..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5/70bac8c09b18001b1f39975547228eb6 +++ /dev/null @@ -1,23 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - void setSpeed(int speed) { // behavior, methods, inputs, outputs, name | int speed - local variable - this.speed = speed; // what ever value comes in method, set equal to instance var - System.out.println(speed); // grabs local variable (int speed) - System.out.println(this.speed); // grabs speed from member variable (private int) - } - - int getSpeed() { - return this.speed; - - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/51/a09a0f40191f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/51/a09a0f40191f001b1394cb98f19e30f5 new file mode 100644 index 0000000..eb600f8 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/51/a09a0f40191f001b1394cb98f19e30f5 @@ -0,0 +1,5 @@ +package com.tutorials.oops; + +public class BiNumber { + +} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d05577ab611d001b11f9a96c984c52b2 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/67/b0348a610f1f001b1394cb98f19e30f5 similarity index 62% rename from Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d05577ab611d001b11f9a96c984c52b2 rename to Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/67/b0348a610f1f001b1394cb98f19e30f5 index ec8e6c3..a6e488c 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/5e/d05577ab611d001b11f9a96c984c52b2 +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/67/b0348a610f1f001b1394cb98f19e30f5 @@ -10,14 +10,22 @@ public class MotorBike { public void setSpeed(int speed) { if (speed > 0) { - this.speed = speed; - } + this.speed = speed; // encapsulation. validations on what can go into obj + } // validates that you set something above 0. } /* * System.out.println(speed); System.out.println(this.speed); // the default * value for a member variable is 0 this.speed = speed; } */ + public void increaseSpeed(int howMuch) { + this.speed = this.speed + howMuch; + } + + public void decreaseSpeed(int howMuch) { + setSpeed(this.speed - howMuch); + } + // behavior void start() { System.out.println("Bike started"); diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/6e/10e11fb9b31c001b11f9a96c984c52b2 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/6e/10e11fb9b31c001b11f9a96c984c52b2 deleted file mode 100644 index 8a6a8cc..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/6e/10e11fb9b31c001b11f9a96c984c52b2 +++ /dev/null @@ -1,15 +0,0 @@ -package com.tutorials.oops; - -public class Book { - - private int noOfCopies; // create instance variable - - void setNoOfCopies(int noOfCopies) { // create method to set noOfCopies - this.noOfCopies = noOfCopies; - } - - void book() { - System.out.println("Book"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/77/40c116c5111f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/77/40c116c5111f001b1394cb98f19e30f5 new file mode 100644 index 0000000..bf51881 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/77/40c116c5111f001b1394cb98f19e30f5 @@ -0,0 +1,42 @@ +package com.tutorials.oops; + +public class MotorBike { + // state + private int speed; // create instance variable // private - cannot be accessed outside class + + MotorBike(){ + + } + + MotorBike(int speed) { // Uses a constructor. Needs the same name as the object + this.speed = speed; + } + + public int getSpeed() { + return speed; + } + + public void setSpeed(int speed) { + if (speed > 0) { + this.speed = speed; // encapsulation. validations on what can go into obj + } // validates that you set something above 0. + } + /* + * System.out.println(speed); System.out.println(this.speed); // the default + * value for a member variable is 0 this.speed = speed; } + */ + + public void increaseSpeed(int howMuch) { + this.speed = this.speed + howMuch; + } + + public void decreaseSpeed(int howMuch) { + setSpeed(this.speed - howMuch); + } + + // behavior + void start() { + System.out.println("Bike started"); + } + +} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/7a/601c2b579c18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/7a/601c2b579c18001b1f39975547228eb6 deleted file mode 100644 index d3d2f5e..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/7a/601c2b579c18001b1f39975547228eb6 +++ /dev/null @@ -1,26 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - - - public int getSpeed() { - return speed; - } - - - - public void setSpeed(int speed) { - this.speed = speed; - } - - - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/85/50138ae79d18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/85/50138ae79d18001b1f39975547228eb6 deleted file mode 100644 index 588c735..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/85/50138ae79d18001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(100);// showing how state of object can change across duration - // System.out.println(ducati.getSpeed()); - - honda.setSpeed(80); - // System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/87/00ca2ba59b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/87/00ca2ba59b18001b1f39975547228eb6 deleted file mode 100644 index 1dc04e5..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/87/00ca2ba59b18001b1f39975547228eb6 +++ /dev/null @@ -1,15 +0,0 @@ -package com.tutorials.oops; - -public class Book { - - private int noOfCopies; // create instance variable - - void setNoOfCopies(int noOfCopies) { // create method to set noOfCopies - this.noOfCopies = noOfCopies; - } - - void book() { - System.out.println("Book"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/8f/30fae6ff0f1f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/8f/30fae6ff0f1f001b1394cb98f19e30f5 new file mode 100644 index 0000000..639f82b --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/8f/30fae6ff0f1f001b1394cb98f19e30f5 @@ -0,0 +1,25 @@ +package com.tutorials.oops; + +public class Book { + + private int noOfCopies; + + public Book(int noOfCopies) { + this.noOfCopies = noOfCopies; + } + + public void setNoOfCopies(int noOfCopies) { + if (noOfCopies > 0) { + this.noOfCopies = noOfCopies; + } + } + + public void increaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies + howMuch); + } + + public void decreaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies - howMuch); + } + +} \ No newline at end of file diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/94/00060a85a118001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/94/00060a85a118001b1f39975547228eb6 deleted file mode 100644 index 2357cdd..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/94/00060a85a118001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(-100);// showing how state of object can change across duration - // System.out.println(ducati.getSpeed()); - - // honda.setSpeed(80); - // System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a3/d071e1d5181f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a3/d071e1d5181f001b1394cb98f19e30f5 new file mode 100644 index 0000000..e69de29 diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a8/c0b324579c18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a8/c0b324579c18001b1f39975547228eb6 deleted file mode 100644 index 14a90c7..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a8/c0b324579c18001b1f39975547228eb6 +++ /dev/null @@ -1,12 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a9/90e8dc610f1f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a9/90e8dc610f1f001b1394cb98f19e30f5 new file mode 100644 index 0000000..387407d --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/a9/90e8dc610f1f001b1394cb98f19e30f5 @@ -0,0 +1,39 @@ +package com.tutorials.oops; + +public class MotorBike { + // state + private int speed; // create instance variable // private - cannot be accessed outside class + + MotorBike(int speed){ + this.speed = speed; + } + + + public int getSpeed() { + return speed; + } + + public void setSpeed(int speed) { + if (speed > 0) { + this.speed = speed; // encapsulation. validations on what can go into obj + } // validates that you set something above 0. + } + /* + * System.out.println(speed); System.out.println(this.speed); // the default + * value for a member variable is 0 this.speed = speed; } + */ + + public void increaseSpeed(int howMuch) { + this.speed = this.speed + howMuch; + } + + public void decreaseSpeed(int howMuch) { + setSpeed(this.speed - howMuch); + } + + // behavior + void start() { + System.out.println("Bike started"); + } + +} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/ab/8083bd5ba118001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/ab/8083bd5ba118001b1f39975547228eb6 deleted file mode 100644 index 8004dc9..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/ab/8083bd5ba118001b1f39975547228eb6 +++ /dev/null @@ -1,22 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - public int getSpeed() { - return speed; - } - - public void setSpeed(int speed) { - System.out.println(speed); - System.out.println(this.speed); - this.speed = speed; - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b0/505136a59b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b0/505136a59b18001b1f39975547228eb6 deleted file mode 100644 index ac51347..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b0/505136a59b18001b1f39975547228eb6 +++ /dev/null @@ -1,20 +0,0 @@ -package com.tutorials.oops; - -public class BookRunner { - - public static void main(String[] args) { - Book effectiveJava = new Book(); - Book artOfComputerProgramming = new Book(); - Book cleanCode = new Book(); - - effectiveJava.book(); - artOfComputerProgramming.book(); - cleanCode.book(); - - effectiveJava.noOfCopies = 16; - cleanCode.noOfCopies = 9; - artOfComputerProgramming.noOfCopies = 12; - - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/19/c0955071a118001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b5/2065e8620f1f001b1394cb98f19e30f5 similarity index 61% rename from Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/19/c0955071a118001b1f39975547228eb6 rename to Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b5/2065e8620f1f001b1394cb98f19e30f5 index cf42c27..865fdf0 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/19/c0955071a118001b1f39975547228eb6 +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/b5/2065e8620f1f001b1394cb98f19e30f5 @@ -12,8 +12,16 @@ public class MotorBikeRunner { ducati.setSpeed(100);// showing how state of object can change across duration // System.out.println(ducati.getSpeed()); + ducati.increaseSpeed(100); + honda.increaseSpeed(100); + + ducati.decreaseSpeed(40); + honda.decreaseSpeed(60); + + // honda.setSpeed(80); - // System.out.println(honda.getSpeed()); + System.out.println("Honda Speed: " + honda.getSpeed()); + System.out.println("Ducati Speed: " + ducati.getSpeed()); } } diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c/3095c1efa61d001b14b1c4051c546674 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c/3095c1efa61d001b14b1c4051c546674 deleted file mode 100644 index 419ecc6..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c/3095c1efa61d001b14b1c4051c546674 +++ /dev/null @@ -1,10 +0,0 @@ -package com.firstjavaproject; - -public class KeyboardShortcuts { - - public static void main(String[] args) { - // TODO Auto-generated method stub - - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c1/9037efff0f1f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c1/9037efff0f1f001b1394cb98f19e30f5 new file mode 100644 index 0000000..bb8ff1e --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c1/9037efff0f1f001b1394cb98f19e30f5 @@ -0,0 +1,29 @@ +package com.tutorials.oops; + +public class Book { + + private int noOfCopies; + + Book(int noOfCopies){ + this.noOfCopies = noOfCopies; + } + + public Book(int noOfCopies) { + this.noOfCopies = noOfCopies; + } + + public void setNoOfCopies(int noOfCopies) { + if (noOfCopies > 0) { + this.noOfCopies = noOfCopies; + } + } + + public void increaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies + howMuch); + } + + public void decreaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies - howMuch); + } + +} \ No newline at end of file diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c8/90ea4ab59d18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c8/90ea4ab59d18001b1f39975547228eb6 deleted file mode 100644 index 29bfcb0..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/c8/90ea4ab59d18001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(100);// showing how state of object can change across duration - //System.out.println(ducati.getSpeed()); - - honda.setSpeed(80); - //System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d3/d086cec09b18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d3/d086cec09b18001b1f39975547228eb6 deleted file mode 100644 index c0dd7d2..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d3/d086cec09b18001b1f39975547228eb6 +++ /dev/null @@ -1,23 +0,0 @@ -package com.tutorials.oops; - -public class MotorBike { - // state - private int speed; // create instance variable // private - cannot be accessed outside class - - void setSpeed(int speed) { // behavior, methods, inputs, outputs, name | int speed - local variable - this.speed = speed; // what ever value comes in method, set equal to instance var - //System.out.println(speed); // grabs local variable (int speed) - //System.out.println(this.speed); // grabs speed from member variable (private int) - } - - int getSpeed() { - return this.speed; - - } - - // behavior - void start() { - System.out.println("Bike started"); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d8/f0bac10d101f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d8/f0bac10d101f001b1394cb98f19e30f5 new file mode 100644 index 0000000..ab7df20 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/d8/f0bac10d101f001b1394cb98f19e30f5 @@ -0,0 +1,29 @@ +package com.tutorials.oops; + +public class Book { + + private int noOfCopies; + + Book(int noOfCopies) { + this.noOfCopies = noOfCopies; + } + + public Book(int noOfCopies) { + this.noOfCopies = noOfCopies; + } + + public void setNoOfCopies(int noOfCopies) { + if (noOfCopies > 0) { + this.noOfCopies = noOfCopies; + } + } + + public void increaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies + howMuch); + } + + public void decreaseNoOfCopies(int howMuch) { + setNoOfCopies(this.noOfCopies - howMuch); + } + +} \ No newline at end of file diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/e2/207d26a8611d001b11f9a96c984c52b2 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/e2/207d26a8611d001b11f9a96c984c52b2 deleted file mode 100644 index 294f80c..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/e2/207d26a8611d001b11f9a96c984c52b2 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(-100);// showing how state of object can change across duration - System.out.println(ducati.getSpeed()); - - // honda.setSpeed(80); - // System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f2/70ba45b59d18001b1f39975547228eb6 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f2/70ba45b59d18001b1f39975547228eb6 deleted file mode 100644 index 02efbc0..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f2/70ba45b59d18001b1f39975547228eb6 +++ /dev/null @@ -1,19 +0,0 @@ -package com.tutorials.oops; - -public class MotorBikeRunner { - - public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); - - ducati.start(); - honda.start(); - - ducati.setSpeed(100);// showing how state of object can change across duration - System.out.println(ducati.getSpeed()); - - honda.setSpeed(80); - System.out.println(honda.getSpeed()); - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f8/c00ea39a0f1f001b1394cb98f19e30f5 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f8/c00ea39a0f1f001b1394cb98f19e30f5 new file mode 100644 index 0000000..d89ddda --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f8/c00ea39a0f1f001b1394cb98f19e30f5 @@ -0,0 +1,38 @@ +package com.tutorials.oops; + +public class MotorBike { + // state + private int speed; // create instance variable // private - cannot be accessed outside class + + MotorBike(int speed) { + this.speed = speed; + } + + public int getSpeed() { + return speed; + } + + public void setSpeed(int speed) { + if (speed > 0) { + this.speed = speed; // encapsulation. validations on what can go into obj + } // validates that you set something above 0. + } + /* + * System.out.println(speed); System.out.println(this.speed); // the default + * value for a member variable is 0 this.speed = speed; } + */ + + public void increaseSpeed(int howMuch) { + this.speed = this.speed + howMuch; + } + + public void decreaseSpeed(int howMuch) { + setSpeed(this.speed - howMuch); + } + + // behavior + void start() { + System.out.println("Bike started"); + } + +} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d0377cab611d001b11f9a96c984c52b2 b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d0377cab611d001b11f9a96c984c52b2 deleted file mode 100644 index 1b42386..0000000 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d0377cab611d001b11f9a96c984c52b2 +++ /dev/null @@ -1,20 +0,0 @@ -package com.tutorials.oops; - -public class BookRunner { - - public static void main(String[] args) { - Book effectiveJava = new Book(); - Book artOfComputerProgramming = new Book(); - Book cleanCode = new Book(); - - effectiveJava.book(); - artOfComputerProgramming.book(); - cleanCode.book(); - - effectiveJava.noOfCopies = 16; - cleanCode.noOfCopies = 9; - artOfComputerProgramming.noOfCopies = 12; - - } - -} diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.markers.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.markers.snap index fdc391a..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.markers.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.markers.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.syncinfo.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.syncinfo.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.syncinfo.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Baseball/.syncinfo.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.indexes/e4/81/f9/history.index b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.indexes/e4/81/f9/history.index new file mode 100644 index 0000000..769b465 Binary files /dev/null and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.indexes/e4/81/f9/history.index differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers index ec6d1f4..254a3a8 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers.snap index a012cbc..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.markers.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.syncinfo.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.syncinfo.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.syncinfo.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/.syncinfo.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/org.eclipse.jdt.core/state.dat b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/org.eclipse.jdt.core/state.dat new file mode 100644 index 0000000..a3a3343 Binary files /dev/null and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/FirstJavaProject/org.eclipse.jdt.core/state.dat differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.indexes/e4/81/d5/e3/history.index b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.indexes/e4/81/d5/e3/history.index index c37b9da..236edb1 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.indexes/e4/81/d5/e3/history.index and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.indexes/e4/81/d5/e3/history.index differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.markers.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.markers.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.markers.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.markers.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.syncinfo.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.syncinfo.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.syncinfo.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/.syncinfo.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/org.eclipse.jdt.core/state.dat b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/org.eclipse.jdt.core/state.dat deleted file mode 100644 index d867609..0000000 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/IntroToOOP/org.eclipse.jdt.core/state.dat and /dev/null differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.markers.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.markers.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.markers.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.markers.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.syncinfo.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.syncinfo.snap index 3ab7083..0b368ce 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.syncinfo.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Planet/.syncinfo.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap index be653c8..54be962 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/3.tree similarity index 84% rename from Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree rename to Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/3.tree index 771b29a..f107412 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/2.tree and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.root/3.tree differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index 39dbccb..432fd09 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/2.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/2.snap deleted file mode 100644 index 134530d..0000000 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/2.snap and /dev/null differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/3.snap b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/3.snap new file mode 100644 index 0000000..e4d4132 Binary files /dev/null and b/Java/Workspace/.metadata/.plugins/org.eclipse.core.resources/3.snap differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml b/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml index 2e79c41..bbc853f 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml @@ -5,4 +5,12 @@ +
+ + + + + + +
diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml b/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml index dbac43d..883bb36 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml @@ -2,10 +2,10 @@ + - @@ -17,10 +17,10 @@ + - @@ -32,10 +32,10 @@ + - diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/Java/Workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi index dd437cf..b5be1d8 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -1,8 +1,8 @@ - - + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration - + @@ -10,10 +10,10 @@ topLevel - shellMaximized - - - + shellMinimized + + + persp.actionSet:org.eclipse.ui.cheatsheets.actionSet persp.actionSet:org.eclipse.search.searchActionSet @@ -68,86 +68,84 @@ persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet persp.viewSC:org.eclipse.ant.ui.views.AntView - - - + + + org.eclipse.e4.primaryNavigationStack - active - noFocus - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - - + + View categoryTag:Git - - - - + + + + org.eclipse.e4.secondaryNavigationStack - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Ant - + org.eclipse.e4.secondaryDataStack - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General @@ -155,7 +153,7 @@ - + persp.actionSet:org.eclipse.ui.cheatsheets.actionSet persp.actionSet:org.eclipse.search.searchActionSet @@ -209,100 +207,100 @@ persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard persp.viewSC:org.eclipse.ant.ui.views.AntView - - - - + + + + View categoryTag:Java Browsing - - - + + + View categoryTag:Java Browsing - - + + View categoryTag:Java Browsing - - - + + + View categoryTag:Java Browsing - - - + + + View categoryTag:Java - + View categoryTag:General active - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Ant - - - + + + View categoryTag:General - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + Minimized @@ -311,1431 +309,1455 @@ - - + + View categoryTag:Help - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Help - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Help - - + + org.eclipse.e4.primaryDataStack EditorStack - noFocus - - + active + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor + + + Editor + removeOnHide + org.eclipse.jdt.ui.CompilationUnitEditor + + + + Editor + removeOnHide + org.eclipse.jdt.ui.CompilationUnitEditor + + + + Editor + removeOnHide + org.eclipse.jdt.ui.CompilationUnitEditor + + + + Editor + removeOnHide + org.eclipse.jdt.ui.CompilationUnitEditor + active + - + View categoryTag:Java - active - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Git - + View categoryTag:Java - + View categoryTag:Ant - + View categoryTag:Java Browsing - + ViewMenu menuContribution:menu - + - + View categoryTag:Java Browsing - + ViewMenu menuContribution:menu - + - + View categoryTag:Java Browsing - + ViewMenu menuContribution:menu - + - + View categoryTag:Java Browsing - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - - + + toolbarSeparator - + - + Draggable - + - + toolbarSeparator - + - + Draggable - + toolbarSeparator - + - + Draggable - + Draggable - + Draggable - + Draggable - + toolbarSeparator - + - + Draggable - + - + Draggable - + toolbarSeparator - + - + toolbarSeparator - + - + Draggable - + stretch SHOW_RESTORE_MENU - + Draggable HIDEABLE SHOW_RESTORE_MENU - - + + stretch - + Draggable - + Draggable - + Draggable - - + + TrimStack Draggable - + TrimStack Draggable - - + + TrimStack Draggable - + TrimStack Draggable - + TrimStack Draggable - + TrimStack Draggable - - - - - - - - + + + + + + + + platform:cocoa - + platform:cocoa - - - - + + + + platform:cocoa - + platform:cocoa - - - - + + + + platform:cocoa - - - - - - - + + + + + + + - - + + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - + platform:cocoa - + - - - - - - + + + + + + platform:cocoa - - - - - - - + + + + + + + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - - - - - - - - + + + + + + + + platform:cocoa - + platform:cocoa - - - - - - - - + + + + + + + + platform:cocoa - + platform:cocoa - + platform:cocoa - - - + + + platform:cocoa - + platform:cocoa - + platform:cocoa - - + + platform:cocoa - + platform:cocoa - + - + platform:cocoa - - - - - + + + + + platform:cocoa - - - - - + + + + + platform:cocoa - - - - - - - - + + + + + + + + platform:cocoa - + platform:cocoa - + platform:cocoa - - + + platform:cocoa - - + + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - - - - - + + + + + platform:cocoa - + platform:cocoa - + - - + + platform:cocoa - - + + platform:cocoa - - - - - - - + + + + + + + platform:cocoa - - - + + + platform:cocoa - + platform:cocoa - - - - - - + + + + + + platform:cocoa - - - + + + - - - + + + platform:cocoa - - - - - - - - - - - + + + + + + + + + + + platform:cocoa - + platform:cocoa - + platform:cocoa - - + + platform:cocoa - + platform:cocoa - + platform:cocoa - - - + + + platform:cocoa - - - + + + platform:cocoa - + platform:cocoa - - + + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - - + + platform:cocoa - - - + + + platform:cocoa - - - - - - - - - - - - - - + + + + + + + + + + + + + + platform:cocoa - - + + platform:cocoa - + platform:cocoa - - + + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - - - + + + platform:cocoa - - - - - + + + + + platform:cocoa - - + + platform:cocoa - - - - - - - - + + + + + + + + - - + + platform:cocoa - - - - + + + + platform:cocoa - + platform:cocoa - + platform:cocoa - + platform:cocoa - - - + + + platform:cocoa - - - + + + platform:cocoa - - - - - - - + + + + + + + - - + + - - - - + + + + platform:cocoa - - + + platform:cocoa - - + + platform:cocoa - - - - - - + + + + + + - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - + + platform:cocoa - - - - + + + + - - - - - - + + + + + + - - - - + + + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - - - - - - + + + + + + + - - - - + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor removeOnHide - + View categoryTag:Ant - + View categoryTag:Gradle - + View categoryTag:Gradle - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git NoRestore - + View categoryTag:Git - + View categoryTag:Help - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Maven - + View categoryTag:Maven - + View categoryTag:Oomph - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Team - + View categoryTag:Team - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:XML - + View categoryTag:XML - - + + glue move_after:PerspectiveSpacer SHOW_RESTORE_MENU - + move_after:Spacer Glue HIDEABLE SHOW_RESTORE_MENU - + glue move_after:SearchField SHOW_RESTORE_MENU - + persp.actionSet:org.eclipse.ui.cheatsheets.actionSet persp.actionSet:org.eclipse.search.searchActionSet @@ -1790,85 +1812,85 @@ persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet persp.viewSC:org.eclipse.ant.ui.views.AntView - - - + + + org.eclipse.e4.primaryNavigationStack active - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - - + + View categoryTag:Git - - - - + + + + org.eclipse.e4.secondaryNavigationStack - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Ant - + org.eclipse.e4.secondaryDataStack - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General @@ -1876,932 +1898,932 @@ - - - - - + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - + + + - - - - + + + + - - - + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/2873549434.index b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/2873549434.index index c73ba31..869c285 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/2873549434.index and b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/2873549434.index differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/3946322395.index b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/3946322395.index index 9bfecb5..c325514 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/3946322395.index and b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.core/3946322395.index differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml index 982ef55..5a2ae24 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml @@ -31,6 +31,12 @@ + + + + + +
@@ -43,4 +49,11 @@
+
+ + + + + +
diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png index 8bb97ce..5a8a6f0 100644 Binary files a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png and b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png new file mode 100644 index 0000000..bddd3b0 Binary files /dev/null and b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png new file mode 100644 index 0000000..7b019ba Binary files /dev/null and b/Java/Workspace/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png differ diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.history b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.history new file mode 100644 index 0000000..054d3a7 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.history @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.index b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.index new file mode 100644 index 0000000..4148edb --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/IntroToOOP/2020/11/45/refactorings.index @@ -0,0 +1 @@ +1604547887452 Delete element diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml new file mode 100644 index 0000000..dcde5d4 --- /dev/null +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml @@ -0,0 +1,7 @@ + +
+
+ + +
+
diff --git a/Java/Workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/Java/Workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log index a918749..4dd18d6 100644 --- a/Java/Workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log +++ b/Java/Workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log @@ -3,3 +3,4 @@ 2020-11-01 19:29:57,994 [Worker-4: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 2020-11-02 16:52:39,755 [Worker-2: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 2020-11-03 00:33:27,191 [Worker-8: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. +2020-11-04 19:26:35,992 [Worker-1: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. diff --git a/Java/Workspace/.metadata/version.ini b/Java/Workspace/.metadata/version.ini index bd5e048..364791e 100644 --- a/Java/Workspace/.metadata/version.ini +++ b/Java/Workspace/.metadata/version.ini @@ -1,3 +1,3 @@ -#Tue Nov 03 00:33:16 MST 2020 +#Wed Nov 04 19:26:24 MST 2020 org.eclipse.core.runtime=2 org.eclipse.platform=4.17.0.v20200902-1800 diff --git a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/Book.class b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/Book.class index 9742d39..f29d526 100644 Binary files a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/Book.class and b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/Book.class differ diff --git a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBike.class b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBike.class index ed6f91c..3d29eda 100644 Binary files a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBike.class and b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBike.class differ diff --git a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBikeRunner.class b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBikeRunner.class index 388864f..564691a 100644 Binary files a/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBikeRunner.class and b/Java/Workspace/IntroToOOP/bin/com/tutorials/oops/MotorBikeRunner.class differ diff --git a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/Book.java b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/Book.java index 639f82b..3589d84 100644 --- a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/Book.java +++ b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/Book.java @@ -4,10 +4,14 @@ public class Book { private int noOfCopies; - public Book(int noOfCopies) { + Book(int noOfCopies) { this.noOfCopies = noOfCopies; } + /* + * public Book(int noOfCopies) { this.noOfCopies = noOfCopies; } + */ + public void setNoOfCopies(int noOfCopies) { if (noOfCopies > 0) { this.noOfCopies = noOfCopies; diff --git a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBike.java b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBike.java index a6e488c..f2549f3 100644 --- a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBike.java +++ b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBike.java @@ -4,6 +4,14 @@ public class MotorBike { // state private int speed; // create instance variable // private - cannot be accessed outside class + MotorBike() { + + } + + MotorBike(int speed) { // Uses a constructor. Needs the same name as the object + this.speed = speed; + } + public int getSpeed() { return speed; } diff --git a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBikeRunner.java b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBikeRunner.java index 865fdf0..4b381b8 100644 --- a/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBikeRunner.java +++ b/Java/Workspace/IntroToOOP/src/com/tutorials/oops/MotorBikeRunner.java @@ -3,8 +3,8 @@ public class MotorBikeRunner { public static void main(String[] args) { - MotorBike ducati = new MotorBike(); - MotorBike honda = new MotorBike(); + MotorBike ducati = new MotorBike(100); + MotorBike honda = new MotorBike(230); ducati.start(); honda.start();