Skip to content

Commit 18eb75f

Browse files
ErikSchierboommirkoperillo
authored andcommitted
Format using Prettier
[Docs] Format using Prettier
1 parent e985a69 commit 18eb75f

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

reference/exercise-concepts/gigasecond.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[Example implementation](https://github.com/exercism/java/blob/master/exercises/gigasecond/.meta/src/reference/java/Gigasecond.java)
44

5-
## General
5+
## General
66

77
- Imports: placed at the top of the file allowing access to methods/classes implemented in other files.
88

9-
- Integers: Integer is a wrapper class around the primitive type `int` which contains a single field of type `int`. The difference between an `int` and an `Integer` is that `int` can only be a binary value of an integer whereas an `Integer`, being a class, has access to a number of other inbuilt functions making it more flexible to manipulation.
9+
- Integers: Integer is a wrapper class around the primitive type `int` which contains a single field of type `int`. The difference between an `int` and an `Integer` is that `int` can only be a binary value of an integer whereas an `Integer`, being a class, has access to a number of other inbuilt functions making it more flexible to manipulation.
1010

1111
- Classes: The tested method is defined in a class
1212

@@ -18,18 +18,19 @@
1818

1919
- Overloading constructors: Sometimes there can be multiple ways to initialize a class, this is known as overloading since the name of the methods match the name of the class but only vary by their arguments.
2020

21-
- Scoping: `{` and `}` used to identify scope of method
21+
- Scoping: `{` and `}` used to identify scope of method
2222

2323
- Objects: creating an instance of the LocalDateTime
2424

2525
- Dates: object containing information about date
2626

2727
- Times: object containing information about the time on a specific date
2828

29-
- Methods: used as a way to interact with the class
29+
- Methods: used as a way to interact with the class
3030

31-
- Return values: returning values from a method, deonted by `return` in the method and typed in the method signature
31+
- Return values: returning values from a method, deonted by `return` in the method and typed in the method signature
3232

3333
## Approach: Overloading Constructors
34-
- Two constructors where one that takes a LocalDate object as an argument and when initialized, converts it to a LocalDateTime and another that just takes the LocalDateTime object and sets that as a property in the instance of the class.
34+
35+
- Two constructors where one that takes a LocalDate object as an argument and when initialized, converts it to a LocalDateTime and another that just takes the LocalDateTime object and sets that as a property in the instance of the class.
3536
- method that returns the time (`getDateTime`) adds a gigasecond to the time initialized before returning the new LocalDateTime object

reference/exercise-concepts/leap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#Leap
22

3-
[Example implementation]
4-
(https://github.com/exercism/java/blob/master/exercises/leap/.meta/src/reference/java/Leap.java)
3+
[Example implementation](https://github.com/exercism/java/blob/master/exercises/leap/.meta/src/reference/java/Leap.java)
54

65
## General
76

@@ -28,4 +27,5 @@
2827
- Logical-Or `||`: Performs a check of two Boolean expressions and returns `true` when either (or both) expression is true, `false` when both expressions are not true
2928

3029
## Approach: Modulo operator and Boolean Expressions
30+
3131
- Pass the year in as a parameter. Use the Modulo operator to determine whether the year is evenly divisible by a certain number, resulting in a boolean. Combine two or more boolean results in a Boolean Expression. Return a boolean value that indicates the year is a leap year, or not.

reference/exercise-concepts/matrix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- Class: define a class to resolve the problem
88
- Constructors: initializing values when object is created
9-
- Methods: define methods to expose functionalities
9+
- Methods: define methods to expose functionalities
1010
- Argument: constructor and methods takes values as arguments
1111
- Strings: input of problem is a `String`
1212
- Integer: work with integer values

reference/exercise-concepts/rna-transcription.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## General
66

77
- Class: define a class to resolve the problem
8-
- Methods: define a method to contain the logic
8+
- Methods: define a method to contain the logic
99
- Argument: the method should take the input as argument
1010
- Strings: input and output of the class method are strings
1111
- Assignment: assign some objects to local variables
@@ -17,7 +17,9 @@
1717
- Error handling: manage the scenario when an invalid value is found
1818

1919
## Approach: Use conditional
20+
2021
- use conditional instead of pattern matching to choose the right operation to execute for the input value
2122

2223
## Approach: functional style
24+
2325
- use stream instead of loops to iterate on input values and map operation with a method reference to transform the data

0 commit comments

Comments
 (0)