/** programme de test pour la classe StdInput qui fourni
*   des methodes de lecture au clavier simples pour les
*   types de données de base les plus courants.
*/

import java.io.*;
import java.lang.*;

public class TestES {
  
   public static void main(String[] args)
   {
      
      System.out.print("entrez un entier : ");
      System.out.flush();
      int i = StdInput.lireEntier();
      System.out.println("entier lu : " + i);

      System.out.print("entrez une chaine :");
      System.out.flush();
      String s = StdInput.lireChaine();
      System.out.println("chaine lue : " + s);

      System.out.print("entrez une réel : ");
      System.out.flush();
      float f = StdInput.lireFloat();
      System.out.println("réel (float) lu : " + f);

      
      System.out.print("entrez une réel : ");
      System.out.flush();
      double d = StdInput.lireDouble();
      System.out.println("réel (double) lu : " + d);

      
      System.out.print("entrez une réposne O/N : ");
      System.out.flush();
      boolean b = StdInput.lireOuiNon();
      System.out.println("booleen lu : " + b);
    
   }
}