All pastes #517284 Raw Edit

Unnamed

public java v1 · immutable
#517284 ·published 2007-05-29 00:35 UTC
rendered paste body
package pkg;import java.sql.*;import java.util.*;import java.io.*;public class Contact {		protected int num;		protected String nom;		protected String prenom;		protected String adresse;		protected String cp;		protected String ville;		protected String telPortable;		protected String telFixe;		protected String email;		protected String fax;		protected Groupe groupe;				public Contact(int intNum, String strNom, String strPrenom, String strAdresse, String strCP, String strVille, String strTelPortable, String strTelFixe, String strEmail, String strFax, Groupe strGroupe)		{			this.num = intNum;			this.nom = strNom;			this.prenom = strPrenom;			this.adresse = strAdresse;			this.cp = strCP;			this.ville = strVille;			this.telPortable = strTelPortable;			this.telFixe = strTelFixe;			this.email = strEmail;			this.fax = strFax;			this.groupe = strGroupe;		}				public int getNum()		{			return(this.num);		}				public String getNom()		{			return(this.nom);		}				public String getPrenom()		{			return(this.prenom);		}				public String getAdresse()		{			return(this.adresse);		}				public String getCP()		{			return(this.cp);		}				public String getVille()		{			return(this.ville);		}				public String getTelPortable()		{			return(this.telPortable);		}				public String getTelFixe()		{			return(this.telFixe);		}				public String getEmail()		{			return(this.email);		}				public String getFax()		{			return(this.fax);		}				public void afficherContact()		{			System.out.println( "Information Contact : " + this.getNum() + " - " + 								this.getNom() + " - " + 								this.getPrenom() + " - " + 								this.getAdresse() + " - " + 								this.getCP() + " - " + 								this.getVille() + " - " + 								this.getTelPortable() + " - " +								this.getTelFixe() + " - " +								this.getEmail() + " - " +								this.getFax() + " - " +								this.getGroupe().getLibelleGroupe()								);		}				public Groupe getGroupe()		{			return(this.groupe);		}				public void setNom(String strNouveauNom)		{			this.nom = strNouveauNom;		}				public void setPrenom(String strNouveauPrenom)		{			this.prenom = strNouveauPrenom;		}				public void setAdresse(String strNouvelleAdresse)		{			this.adresse = strNouvelleAdresse;		}				public void setCP(String strNouveauCP)		{			this.cp = strNouveauCP;		}				public void setVille(String strNouvelleVille)		{			this.ville = strNouvelleVille;		}				public void setTelPortable(String strNouveauTelPortable)		{			this.telPortable = strNouveauTelPortable;		}				public void setTelFixe(String strNouveauTelFixe)		{			this.telFixe = strNouveauTelFixe;		}				public void setFax(String strNouveauFax)		{			this.fax = strNouveauFax;		}				public void setEmail(String strNouveauEmail)		{			this.email = strNouveauEmail;		}	}