This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val unLongMots = "Anticonstitutionelement" | |
| val message = "le plus long mot en francais est compose de ${longWord.leght} lettres " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| salut , ceci est un block de commenatire | |
| il s'etant sur plusieurs ligne. | |
| vous pouvez ecrire autant que vous voulez | |
| */ | |
| //ceci est un commentaire uniligne |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val monInt = 767 | |
| val monLong = monInt.toLong() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val myNumber = 1000 | |
| val myNumberAgain: Long = myNumber //erreur : Type mismatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val monLong = 57L | |
| val monLongEncore :Long = 57 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val monInt = 20 | |
| val monLong = 300L | |
| val monFloat = 24.43F | |
| val monDouble = 61.89 | |
| val monHexadecimal = 0X0F | |
| val monBinary = 0b010101 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val langue = "Lingala", pays = "RD Congo" // erreur | |
| val langue = "Lingala" | |
| val pays = "RD Congo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val phoneModel: String | |
| phoneModel = "Techno" // pas d'erreur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var age = 12 | |
| age = "douze"// erreur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val dateOfBirth = "17 Mars ,1078" | |
| dateOfBirth = "05 Avril, 1089" //erreur | |
| var age = 23 | |
| age = 28 //pas de probleme |
NewerOlder