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/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: 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"); + + } + +} 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 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 !!"); + } +} 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 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"); + } +} 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 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 + } +} 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 + } +} 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 !!"); + } +} 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: