Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class joueur {
- Scanner clavier=new Scanner(System.in);
- String nom;
- String symb;
- public joueur ()
- {
- }
- public void ini_nom ()
- {
- String s;
- System.out.println("entrez le nom de votre joueur : ");
- s=clavier.next();
- this.nom=s;
- }
- public void choix_symbole ()
- {
- String s;
- System.out.println("entrez le symbole de votre joueur : ");
- s=clavier.next();
- this.symb=s;
- }
- public String nom ()
- {
- return this.nom;
- }
- public String symb ()
- {
- return this.symb;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement