public class Main { public static void main (String[]args) { Copec copec=new Copec("Chillan"); Auto a1=new Auto("AUTO1",30); //empleado 0 echa en el a1 50 litros del surtido 1 copec.echar(0, a1, 50, 1); //como queda la copec System.out.println(copec.toString()); //como queda el auto System.out.println(a1.toString()); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter