Skip to content

Instantly share code, notes, and snippets.

class Mathematic {
public static void main(String[] args){
int number = Integer.parseInt(args[0]);
System.out.println(fizzBuzz(number));
}
public static String fizzBuzz(int number) {
if (number % 3 == 0 && number % 5 == 0) {
return "fizzbuzz";
class SortArray {
public static int[] sort(int[] tableInt){
for(int j = 0; j < tableInt.length - 1; j++) {
int minValue = tableInt[j];
int index = j;
for (int i = j + 1; i < tableInt.length; i++){

Réaliser une application avec les contraintes suivantes :

Une classe parente doit contenir au minimum ces attributs : ex : Warrior

  • attack
  • life

Au moins trois classe héritées contiennent des redéfinitions de méthodes du parent :

Voici la procédure d'installation d'IntelliJ Idea Ultimate, un IDE que tu utiliseras à la rentrée afin de développer sur Spring Boot.

Le logiciel est payant, mais tu peux l'utiliser gratuitement pendant deux ans grâce à ton compte GitHub Education. Si tu ne l'as pas encore activé, suis les étapes de l'email "Ton adresse email Wild" envoyé par [email protected] le 05/05/2019.

Une fois ton compte activé, tu dois créer un compte JetBrains avec le bouton "Apply via GitHub" de cette page : https://www.jetbrains.com/student/?authMethod=github

Il faudra utiliser ce compte après l'installation du logiciel, dont tu trouveras le lien ici : https://www.jetbrains.com/idea/download/#section=linux

Attention à télécharger la version Ultimate (pas Community)

package com.example.shoesfactory.controllers;
import com.example.shoesfactory.entities.Shoes;
import com.example.shoesfactory.repositories.ShoesRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Optional;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.runners.JUnit4;
import java.util.Random;
import javassist.*;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.invoke.MethodHandles;
public class MainTest {
// package replace.with.mypackage;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;