From f7d874f64d064e9e4a1ea6e89a359f52a3b0af91 Mon Sep 17 00:00:00 2001 From: AbhilashG97 Date: Sun, 28 Oct 2018 22:49:09 +0530 Subject: [PATCH 01/11] style: minor modifications --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 573c4cb..547c723 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # test-repo This is a test repo, please fork me!!! \(^_^)/ - +This repository contains a simple test on Java Lambdas and Git.
-Please follow the below mentioned instructions; +Please follow the below mentioned instructions: 1. Fork this repository 2. Clone the forked the repository to your machine 3. Create a new branch from the development branch 4. Create a new folder :file_folder: and name it ```Java``` 5. Go into the Java directory -6. Create a java file called Student. +6. Create a java file called Student * Create a class Student * Create the following fields and methods- 1. String -> name [private] @@ -18,21 +18,21 @@ Please follow the below mentioned instructions; 3. String -> favoriteFruit [private] 4. float -> height [private] 5. float -> weight [private] - * Create getters and setters - * Create a argmumented-constructor which takes in all the declared fields, and a no-arg constructor(default constructor) + * Create getters and setters for these fields + * Create a argumented-constructor which takes in all the declared fields, and a no-arg constructor(default constructor) * Create a driver class which contains a main method. - * Create a non-static method called ```studentConsumer()```. The method takes two in arguments, which are as follows: + * Create a non-static method called ```studentConsumer()``` in the driver class. The method takes two in arguments, which are as follows: 1. An ```ArrayList``` of students 2. A ```Consumer``` functional interface * Inside the method body write the logic to consume the students in present in the ```ArrayList``` by making use of the ```accept(T t)``` method of the ```Consumer``` functional interface. * Create an ArrayList of students and populate the list by taking input from the user. - * Call the ```studentConsumer()``` method, pass in the list of students and also write the logic to print the details of each student from the list + * Call the ```studentConsumer()``` method inside the main thread, pass in the list of students and also write the logic to print the details of each student from the list. * Once the program executes and displays the output, commit the file ```.java``` file only. 7. Now create a text file and write the name of your favorite fruit, song, and dessert. 8. Commit the text file as well. -9. Create a ```.gitignore``` file and add ```*.class``` entry in it. +9. Create a ```.gitignore``` file and add ```*.class``` entry into it. 10. Commit this file as well. -11. Squash the last three commits and send a pull request. +11. Finally, squash the last three commits into a single commit and send a pull request. :sparkles: Yay!! You're done. :sparkles: From f5c3fc778e0024ac66a1cebd1d4d8608b7f30a4a Mon Sep 17 00:00:00 2001 From: AbhilashG97 Date: Tue, 11 Dec 2018 11:48:54 +0530 Subject: [PATCH 02/11] added files --- .gitignore | 1 + Fruits/Watermelon.java | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore create mode 100644 Fruits/Watermelon.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5241a72 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.class \ No newline at end of file diff --git a/Fruits/Watermelon.java b/Fruits/Watermelon.java new file mode 100644 index 0000000..659058c --- /dev/null +++ b/Fruits/Watermelon.java @@ -0,0 +1,5 @@ +public class Watermelon { + public static void main(String[] args) { + System.out.println("Watermelons !!"); + } +} \ No newline at end of file From bfd4bd0de76fcb134b9a48b274de68077da04418 Mon Sep 17 00:00:00 2001 From: athiranair2000 Date: Tue, 11 Dec 2018 14:20:02 +0530 Subject: [PATCH 03/11] apple is added --- Fruits/Apple.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Fruits/Apple.java diff --git a/Fruits/Apple.java b/Fruits/Apple.java new file mode 100644 index 0000000..f5b758c --- /dev/null +++ b/Fruits/Apple.java @@ -0,0 +1,5 @@ +public class Apple { + public static void main(String[] args) { + System.out.println("Apple !!"); + } +} From 274edfec1030c46598fe8fb1d080dc5c0a0aff55 Mon Sep 17 00:00:00 2001 From: AbhilashG97 Date: Tue, 11 Dec 2018 14:44:23 +0530 Subject: [PATCH 04/11] added star-fruit --- Fruits/StarApple.java | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Fruits/StarApple.java diff --git a/Fruits/StarApple.java b/Fruits/StarApple.java new file mode 100644 index 0000000..8bcd5cc --- /dev/null +++ b/Fruits/StarApple.java @@ -0,0 +1,6 @@ +public class StarApple { + // Abhilash G + public static void main(String[] args) { + System.out.println("Star Apple !!"); + } +} \ No newline at end of file From 27b142e926c9dad4f13a59360cfbc8f973bb2bb5 Mon Sep 17 00:00:00 2001 From: hridya Date: Tue, 11 Dec 2018 14:07:16 +0530 Subject: [PATCH 05/11] new fruit added --- Fruits/Strawberry.java | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Fruits/Strawberry.java diff --git a/Fruits/Strawberry.java b/Fruits/Strawberry.java new file mode 100644 index 0000000..70f3518 --- /dev/null +++ b/Fruits/Strawberry.java @@ -0,0 +1,6 @@ +public class Strawberry { + public static void main(String[] args){ + //Hridya + System.out.println("I love Strawberries"); + } +} From aacd18e9a1d06cd27a2b7170d4dca13ee89f4594 Mon Sep 17 00:00:00 2001 From: prabhakar369 Date: Tue, 11 Dec 2018 14:15:55 +0530 Subject: [PATCH 06/11] prabhakar --- Fruits/strawberry.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Fruits/strawberry.java diff --git a/Fruits/strawberry.java b/Fruits/strawberry.java new file mode 100644 index 0000000..3ab97e0 --- /dev/null +++ b/Fruits/strawberry.java @@ -0,0 +1,5 @@ +public class strawberry { + public static void main(String[] args) { + System.out.println("i love the strawberry !!"); + } +} From 962f3bf66afd669fc7090dbb8a4c936ddcf7adbb Mon Sep 17 00:00:00 2001 From: gopikaharikumar Date: Tue, 11 Dec 2018 14:23:10 +0530 Subject: [PATCH 07/11] changed the fruit name --- Fruits/apple.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Fruits/apple.java diff --git a/Fruits/apple.java b/Fruits/apple.java new file mode 100644 index 0000000..25bac97 --- /dev/null +++ b/Fruits/apple.java @@ -0,0 +1,5 @@ +public class Apple { + public static void main(String[] args) { + System.out.println("Apple !!");//Gopika + } +} From 12347a8670e435f17a5fb466de0b4c2bead718ec Mon Sep 17 00:00:00 2001 From: jasnasuresh Date: Tue, 11 Dec 2018 14:22:43 +0530 Subject: [PATCH 08/11] Changed the fruit name --- Fruits/pineapple.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Fruits/pineapple.java diff --git a/Fruits/pineapple.java b/Fruits/pineapple.java new file mode 100644 index 0000000..15d9d4d --- /dev/null +++ b/Fruits/pineapple.java @@ -0,0 +1,5 @@ +public class pineapple { + public static void main(String[] args) { + System.out.println("Pineapple!!"); //Jasna + } +} From 347ad39844c9b34315c18bc8b0d9d095ad97a504 Mon Sep 17 00:00:00 2001 From: AbhilashG97 Date: Wed, 12 Dec 2018 14:39:34 +0530 Subject: [PATCH 09/11] created fruit juice --- FruitJuice/Abhilash/DragonFruit.java | 5 +++++ FruitJuice/Abhilash/StarFruit.java | 5 +++++ FruitJuice/Abhilash/Watermelon.java | 5 +++++ FruitJuice/Abhilash/tmp.txt | 1 + 4 files changed, 16 insertions(+) create mode 100644 FruitJuice/Abhilash/DragonFruit.java create mode 100644 FruitJuice/Abhilash/StarFruit.java create mode 100644 FruitJuice/Abhilash/Watermelon.java create mode 100644 FruitJuice/Abhilash/tmp.txt diff --git a/FruitJuice/Abhilash/DragonFruit.java b/FruitJuice/Abhilash/DragonFruit.java new file mode 100644 index 0000000..e3c7c76 --- /dev/null +++ b/FruitJuice/Abhilash/DragonFruit.java @@ -0,0 +1,5 @@ +public class DragonFruit { + public static void main(String[] args) { + System.out.println("Dragon Fruit"); + } +} \ No newline at end of file diff --git a/FruitJuice/Abhilash/StarFruit.java b/FruitJuice/Abhilash/StarFruit.java new file mode 100644 index 0000000..80677d5 --- /dev/null +++ b/FruitJuice/Abhilash/StarFruit.java @@ -0,0 +1,5 @@ +public class StarFruit { + public static void main(String[] args) { + System.out.println("Star Fruit"); + } +} \ No newline at end of file diff --git a/FruitJuice/Abhilash/Watermelon.java b/FruitJuice/Abhilash/Watermelon.java new file mode 100644 index 0000000..3654e1d --- /dev/null +++ b/FruitJuice/Abhilash/Watermelon.java @@ -0,0 +1,5 @@ +public class Watermelon { + public static void main(String[] args) { + System.out.println("Watermelon"); + } +} \ No newline at end of file diff --git a/FruitJuice/Abhilash/tmp.txt b/FruitJuice/Abhilash/tmp.txt new file mode 100644 index 0000000..ffb123a --- /dev/null +++ b/FruitJuice/Abhilash/tmp.txt @@ -0,0 +1 @@ +Abhilash From 6d10a25b42716453aeb7d8c285ab73c6261872e1 Mon Sep 17 00:00:00 2001 From: abhijitramesh Date: Wed, 12 Dec 2018 15:04:28 +0530 Subject: [PATCH 10/11] mixed fruit juice --- FruitJuice/Abhijit/Lichi.java | 13 +++++++++++++ FruitJuice/Abhijit/Mango.java | 13 +++++++++++++ FruitJuice/Abhijit/Papaya.java | 13 +++++++++++++ FruitJuice/Abhijit/grapes.java | 13 +++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 FruitJuice/Abhijit/Lichi.java create mode 100644 FruitJuice/Abhijit/Mango.java create mode 100644 FruitJuice/Abhijit/Papaya.java create mode 100644 FruitJuice/Abhijit/grapes.java diff --git a/FruitJuice/Abhijit/Lichi.java b/FruitJuice/Abhijit/Lichi.java new file mode 100644 index 0000000..5025990 --- /dev/null +++ b/FruitJuice/Abhijit/Lichi.java @@ -0,0 +1,13 @@ +/** + * + * @author abhijit + * + */ +public class Lichi { + + public static void main(String[] args) { + System.out.println("Lichi"); + + } + +} diff --git a/FruitJuice/Abhijit/Mango.java b/FruitJuice/Abhijit/Mango.java new file mode 100644 index 0000000..40f1a2f --- /dev/null +++ b/FruitJuice/Abhijit/Mango.java @@ -0,0 +1,13 @@ +/** + * + * @author abhijit + * + */ +public class Mango { + + public static void main(String[] args) { + System.out.println("Mango"); + + } + +} diff --git a/FruitJuice/Abhijit/Papaya.java b/FruitJuice/Abhijit/Papaya.java new file mode 100644 index 0000000..0206d1e --- /dev/null +++ b/FruitJuice/Abhijit/Papaya.java @@ -0,0 +1,13 @@ +/** + * + * @author abhijit + * + */ +public class Papaya { + + public static void main(String[] args) { + System.out.println("papaya"); + + } + +} diff --git a/FruitJuice/Abhijit/grapes.java b/FruitJuice/Abhijit/grapes.java new file mode 100644 index 0000000..7b5620e --- /dev/null +++ b/FruitJuice/Abhijit/grapes.java @@ -0,0 +1,13 @@ +/** + * + * @author abhijit + * + */ +public class grapes { + + public static void main(String[] args) { + System.out.println("grapes"); + + } + +} From 041164e5e8a29ca6bdf1da83bc91bd241fa34330 Mon Sep 17 00:00:00 2001 From: Abhilash G Date: Sun, 19 May 2019 03:41:40 +0530 Subject: [PATCH 11/11] Create README.md --- Assignments/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Assignments/README.md diff --git a/Assignments/README.md b/Assignments/README.md new file mode 100644 index 0000000..96c1c2c --- /dev/null +++ b/Assignments/README.md @@ -0,0 +1,3 @@ +# Java Assignments + +This folder will contain ```Java``` assignments. It will be updated soon with a lot more problems. :sparkles: