Le Récap' est un exercice de synthèse où tu vas résumer et rassembler dans un document récapitulatif ce que tu as appris cette semaine.
Pas de panique, tu ne vas pas faire cela tout seul, mais avec quelques camarades !
/******* | |
* Read input from System.in | |
* Use: System.out.println to ouput your result to STDOUT. | |
* Use: System.err.println to ouput debugging information to STDERR. | |
* ***/ | |
package com.isograd.exercise; | |
import java.util.*; | |
public class IsoContest { | |
public static void main( String[] argv ) throws Exception { |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.1.1.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.List; | |
public class Generics { | |
interface Predicate<T> { | |
boolean filter(T obj); | |
} |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
int[] vector = null; | |
Integer result = null; | |
try (Scanner scanner = new Scanner(new File(args[0]))) { | |
String[] numberTokens = scanner.nextLine().split(","); | |
vector = new int[numberTokens.length]; |
import java.util.Arrays; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import java.util.*; | |
class Main { | |
public static void main(String[] args) { | |
int N; | |
int[] result = null; |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
// nom de la class identique au fichier | |
class Hello { | |
// point d'entree de la class | |
// la methode main est execute au lancement de java Hello | |
public static void main(String[] args) { | |
//la variable resultat recoit le retour de l appel de la methode isEven | |
boolean resultat = isEven(7); | |
//affiche le contenu de la variable resultat | |
System.out.println(resultat); |
public class Mathematique { | |
public static void main(String[] args) { | |
if (args.length > 0) { | |
int n = Integer.parseInt(args[0]); | |
boolean result = nbPair(n); | |
System.out.println(result); | |
} else { | |
System.out.println("Passer un nombre en paramètre"); | |
} |
Avec ton camarade, choisi un des trois projets suivants. Prend toute la journée de mercredi afin d'y travailler en binôme, en pair programming : une personne écrit le code, l'autre l'aide. Les rôles doivent tourner régulièrement !
Créer une calculatrice qui demande en entrée une action et deux nombres, puis affiche le résultat correspondant.
Exemple :