Skip to content

Commit 8b5ca63

Browse files
authored
Translated a small part, changed enum to "DIAMOND"
1 parent 06f1f0d commit 8b5ca63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/part-10/3-other-useful-techniques.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ The form is correct.
630630

631631
<sample-output>
632632

633-
Anna merkkijono: **abc**
633+
Enter a string: **abc**
634634
The form is incorrect.
635635

636636
</sample-output>
@@ -751,7 +751,7 @@ Almost all programming languages ​​support regular expressions nowadays. The
751751

752752
<!-- Jos tiedämme muuttujien mahdolliset arvot ennalta, voimme käyttää niiden esittämiseen `enum`-tyyppistä luokkaa eli *lueteltua tyyppiä*. Luetellut tyypit ovat oma luokkatyyppinsä rajapinnan ja normaalin luokan lisäksi. Lueteltu tyyppi määritellään avainsanalla `enum`. Esimerkiksi seuraava `Maa`-enumluokka määrittelee neljä vakioarvoa: `RUUTU`, `PATA`, `RISTI` ja `HERTTA`. -->
753753

754-
If we know the possible values ​​of a variable in advance, we can use a class of type `enum`, i.e., *enumerated type* to represent the values. Enumerated types are their own type in addition to being normal classes and interfaces. An enumerated type is defined by the keyword `enum`. For example, the following `Suit` enum class defines four constant values: `Diamond`, `SPADE`, `CLUB` and `HEART`.
754+
If we know the possible values ​​of a variable in advance, we can use a class of type `enum`, i.e., *enumerated type* to represent the values. Enumerated types are their own type in addition to being normal classes and interfaces. An enumerated type is defined by the keyword `enum`. For example, the following `Suit` enum class defines four constant values: `DIAMOND`, `SPADE`, `CLUB` and `HEART`.
755755

756756

757757
<!-- ```java

0 commit comments

Comments
 (0)