This is an useless ****ing page, don't spend your time on it. Let's start with some easy java code to fill this useless page.
import java.io.*;
public static void main(String[] args)
new Tp2().testerEx2();
void testerEx2() throws IOException {
// Variables de l'exercice 2
BufferedReader clavier = new BufferedReader(new InputStreamReader(
System.in));
int nombre;
int positionChiffre;
int chiffreChoisi;
// Entrées
System.out.print("Entrez un nombre : ");
nombre = Integer.parseInt(clavier.readLine());
System.out
.print("Choisissez la position du chiffre : 1= unité ou 2= dizaine 3= centaine 4= mille 5= dizaine de mille [1-5] ");
positionChiffre = Integer.parseInt(clavier.readLine());
// Faire les calculs avec le résultat
if (positionChiffre == 1) {
nombre = nombre / 1;
chiffreChoisi = nombre % 10;
System.out.print("Votre chiffre est : " + chiffreChoisi);
}
if (positionChiffre == 2) {
nombre = nombre / 10;
chiffreChoisi = nombre % 10;
System.out.print("Votre chiffre est : " + chiffreChoisi);
}
if (positionChiffre == 3) {
nombre = nombre / 100;
chiffreChoisi = nombre % 10;
System.out.print("Votre chiffre est : " + chiffreChoisi);
}
if (positionChiffre == 4) {
nombre = nombre / 1000;
chiffreChoisi = nombre % 10;
System.out.print("Votre chiffre est : " + chiffreChoisi);
}
if (positionChiffre == 5) {
nombre = nombre / 10000;
chiffreChoisi = nombre % 10;
System.out.print("Votre chiffre est : " + chiffreChoisi);
}
}
--------------------

QUOTE (Supercoolbro @ Nov 6 2008, 11:36 PM)

I'm not a kid I constantly change my age. My age can now represent how smart I feel like posting.