From 089746f52bd5decddca49e30d6b82fee7bcd6d02 Mon Sep 17 00:00:00 2001 From: AbhilashG97 Date: Sun, 28 Oct 2018 22:49:09 +0530 Subject: [PATCH] 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: