Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Venta {
- private String producto;
- private String fecha; //aammdd
- private int total;
- public Venta(String a, String b, int c){
- this.producto = a;
- this.fecha = b;
- this.total = c;
- }
- public String getProducto(){
- return producto;
- }
- public void setProducto(String producto){
- this.producto = producto;
- }
- public String getFecha(){
- return fecha;
- }
- public void setFecha(String fecha){
- this.fecha = fecha;
- }
- public int getTotal(){
- return total;
- }
- public void setTotal(int total){
- this.total = total;
- }
- public static void main(String args[]) {
- Venta carro[] = new Venta[100];
- String auxProducto, auxFecha;
- int auxTotal;
- auxProducto = "Manzana";
- auxFecha = "190319";
- auxTotal = 500;
- /*
- carro[0].producto = auxProducto;
- carro[0].fecha = auxFecha;
- carro[0].total = auxTotal;
- */
- System.out.println("HOOOOLA");
- // System.out.println("ALO: "+carro[0].producto);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement