Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class joueur {
  5.     Scanner clavier=new Scanner(System.in);
  6.     String  nom;
  7.     String symb;
  8.    
  9.    
  10.     public joueur ()
  11.     {
  12.                
  13.     }
  14.    
  15.     public void ini_nom ()
  16.     {
  17.         String s;
  18.         System.out.println("entrez le nom de votre joueur : ");
  19.         s=clavier.next();
  20.         this.nom=s;
  21.     }
  22.    
  23.     public void choix_symbole ()
  24.     {
  25.         String s;
  26.         System.out.println("entrez le symbole de votre joueur : ");
  27.         s=clavier.next();
  28.         this.symb=s;
  29.     }
  30.    
  31.     public String nom ()
  32.     {
  33.         return this.nom;
  34.     }
  35.    
  36.     public String symb ()
  37.     {
  38.         return this.symb;
  39.     }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement