Probleme dans mon programme besoin d'aide
Alex
-
arth -
arth -
/*
* Main.java
*
* Created on 20 septembre 2006, 17:12
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package javaapplication1;
import java.io.*;
/**
*
* @author 3045-2006
*/
public class Main {
/** Creates a new instance of Main */
public Main() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int nomb;
System.out.println ("bonjour");
System.out.println("tapez un nombre de 1 a 3");
int nomb =System.in.read () ;
switch (nomb){
case 1 :
System.out.println("salut");
break;
case 2 :
System.out.println("ca va");
break;
case 3 :
System.out.println("foutu");
break;
}
}
}
* Main.java
*
* Created on 20 septembre 2006, 17:12
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package javaapplication1;
import java.io.*;
/**
*
* @author 3045-2006
*/
public class Main {
/** Creates a new instance of Main */
public Main() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int nomb;
System.out.println ("bonjour");
System.out.println("tapez un nombre de 1 a 3");
int nomb =System.in.read () ;
switch (nomb){
case 1 :
System.out.println("salut");
break;
case 2 :
System.out.println("ca va");
break;
case 3 :
System.out.println("foutu");
break;
}
}
}
A voir également:
- Probleme dans mon programme besoin d'aide
- Programme demarrage windows - Guide
- Programme word gratuit - Guide
- Message programmé - Guide
- Cette action ne peut pas être réalisée car le fichier est ouvert dans un autre programme - Guide
- Mettre en veille un programme - Guide