Vous êtes sur la page 1sur 1

package p3;

import jakarta.servlet.http.HttpServletRequest;

public class PetitDejeuner {


private int chambre;
private int nombreDeRepas;
private String heure;
private String commentaires;

public PetitDejeuner (HttpServletRequest req) {


this.chambre= Integer.parseInt(req.getParameter("chambre"));
this.nombreDeRepas=
Integer.parseInt(req.getParameter("nombreDeRepas"));
this.heure= req.getParameter("heure");
this.commentaires= req.getParameter("commentaires");

public int getChambre() {


return chambre;
}

public int getNombreDeRepas() {


return nombreDeRepas;
}

public String getHeure() {


return heure;
}

public String getCommentaires() {


return commentaires;
}

Vous aimerez peut-être aussi