Programa de Recetas
Enviado por neumar • 26 de Noviembre de 2015 • Apuntes • 7.068 Palabras (29 Páginas) • 87 Visitas
package ingredientes_recetas;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
class In{
private String nombre;
private String tipo;
private int codigo;
private int cantidad;
private int peso;
public In(String nombre, String tipo, int codigo, int cantidad, int peso) {
this.nombre = nombre;
this.tipo = tipo;
this.codigo = codigo;
this.cantidad = cantidad;
this.peso = peso;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getTipo() {
return tipo;
}
public void setTipo(String tipo) {
this.tipo = tipo;
}
public int getCodigo() {
return codigo;
}
public void setCodigo(int codigo) {
this.codigo = codigo;
}
public int getCantidad() {
return cantidad;
}
public void setCantidad(int cantidad) {
this.cantidad = cantidad;
}
public int getPeso() {
return peso;
}
public void setPeso(int peso) {
this.peso = peso;
}
}
class re{
private String nombre;
private int tiempo;
private int in1;
private int can1;
private int in2;
private int can2;
private int in3;
private int can3;
private int in4;
private int can4;
private int in5;
private int can5;
public re(String nombre, int tiempo, int in1, int can1, int in2, int can2, int in3, int can3, int in4, int can4, int in5, int can5) {
this.nombre = nombre;
this.tiempo = tiempo;
this.in1 = in1;
this.can1 = can1;
this.in2 = in2;
this.can2 = can2;
this.in3 = in3;
this.can3 = can3;
this.in4 = in4;
this.can4 = can4;
this.in5 = in5;
this.can5 = can5;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public int getTiempo() {
return tiempo;
}
public void setTiempo(int tiempo) {
this.tiempo = tiempo;
}
public int getIn1() {
return in1;
}
public void setIn1(int in1) {
this.in1 = in1;
}
public int getCan1() {
return can1;
}
public void setCan1(int can1) {
this.can1 = can1;
}
public int getIn2() {
return in2;
}
public void setIn2(int in2) {
this.in2 = in2;
}
public int getCan2() {
return can2;
}
public void setCan2(int can2) {
this.can2 = can2;
}
public int getIn3()
...