This file contains 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
public class Classroom{ | |
public static void main(String[] args) { | |
Wilder Patrice = new Wilder("Patrice", true); | |
System.out.println(Patrice.whoAmI()); | |
Patrice.setFirstname("Bébère"); | |
Patrice.setAware(false); | |
System.out.println(Patrice.whoAmI()); | |
This file contains 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
class Decipherer { | |
public static String decryption(String param) { | |
int chiffreCle= (param.length()) /2; | |
param = param.substring(5, 5+chiffreCle); | |
param = param.replace("@#?"," "); | |
param = new StringBuilder(param).reverse().toString(); | |
return param; | |
} | |
public static void main(String[] args) { | |
String message1 = "0@sn9sirppa@#?ia'jgtvryko1"; |
This file contains 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
import java.util.Arrays; | |
import java.util.List; | |
public class Movies { | |
public static void main(String[] args){ | |
String[] moviesIndiana = { "LesAventuriersDeLArchePerdue", "IndianaJonesEtLeTempleMaudit", "IndianaJonesEtLaDerniereCroisade" }; | |
String[][] moviespers={{"Harrisson_Ford","Karen_Allen","Paul_Freeman"},{"Harrisson_Ford","Kta_Capshaw","Jonathna_Ke_Quan"},{"Harrisson_Ford","Sean_Connery","Denholm_Elliot"}}; | |
for(int i = 0; i< moviesIndiana.length;i++){ | |
System.out.println("Dans le film "+moviesIndiana[i]+" les acteurs principaux sont "+Arrays.toString(moviespers[i])); | |
}; |
This file contains 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
import java.util.Arrays; | |
import java.util.List; | |
public class Movies { | |
public static void main(String[] args){ | |
String[] moviesIndiana = { "LesAventuriersDeLArchePerdue", "IndianaJonesEtLeTempleMaudit", "IndianaJonesEtLaDerniereCroisade" }; | |
String[][] moviespers={{"Harrisson_Ford","Karen_Allen","Paul_Freeman"},{"Harrisson_Ford","Kta_Capshaw","Jonathna_Ke_Quan"},{"Harrisson_Ford","Sean_Connery","Denholm_Elliot"}}; | |
for(int i = 0; i< moviesIndiana.length;i++){ | |
System.out.println("Dans le film "+moviesIndiana[i]+" les acteurs principaux sont "+Arrays.toString(moviespers[i])); |
This file contains 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
public class indiana { | |
public static void main(String[] args){ | |
String name = "Indian Jones"; | |
boolean looking = true ; | |
int year = 1989; | |
float note = 8.2f; | |
System.out.println( name ); | |
System.out.println( looking ); |
This file contains 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
class CandyCount { | |
public static void main(String[] args) { | |
float money=12.4f; | |
float price = 1.2f; | |
int candies = 0; | |
if(money > 0 && price>0){ | |
while((money - price)>= 0){ | |
candies = candies + 1; | |
money = money - price; |
This file contains 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
class CandyCount { | |
public static void main(String[] args) { | |
float money=12.4f; | |
float price = 1.2f; | |
int candies = 0; | |
if(money > 0 && price>0){ | |
while((money - price)>= 0){ | |
candies = candies + 1; | |
money = money - price; |
This file contains 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
class Senpai { | |
public static void main(String[] args) { | |
// afficher Notice me Senpai dans le terminal | |
System.out.println("Notice me Senpai"); | |
} | |
} |
This file contains 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
class Animaux { | |
miauler: boolean; | |
aboyer: boolean; | |
voler: boolean; | |
nager: boolean; | |
photo: boolean; | |
} | |
class Chat extends Animaux implements Quadrupede { | |
miauler = true; |
This file contains 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
function hello(name:string) { | |
console.log("Hello " + name); | |
} | |
var firstName = "bob"; | |
hello(firstName); | |
hello(firstName + " marley"); | |
function concat(a:string, b:string) { |
NewerOlder