diff --git b/Dia 3/EjericicioInterface.java a/Dia 3/EjericicioInterface.java new file mode 100644 index 0000000..f92597d --- /dev/null +++ a/Dia 3/EjericicioInterface.java @@ -0,0 +1,75 @@ + +package bootcamp; + + + +interface formas { + + public boolean cuadrarTexto(); + +} + +class circulos implements formas { + private int radio; + private String color_cir; + private String palabrac; + + + + public circulos (int radio,String color_cir,String palabrac) { + this.radio=radio; + this.color_cir = color_cir; + this.palabrac=palabrac; + } + + public boolean cuadrarTexto(){ + + if (radio>=palabrac.length() ){ + return true; + }else{ + return false; + } + } +} + +class rectangulos implements formas { + private double longitud; + private double anchura; + private String color_rec; + private String palabrar; + + public rectangulos(double longitud, double anchura, String color_rec, String palabrar) { + this.longitud = longitud; + this.anchura = anchura; + this.color_rec = color_rec; + this.palabrar = palabrar; + } + public boolean cuadrarTexto(){ + + if (longitud>=palabrar.length() ){ + return true; + }else{ + return false; + } + + } + +} + +public class EjericicioInterface { + public static void main(String [ ] args){ + circulos cir = new circulos(5,"Rojo","Paraguay") ; + System.out.println("Es mayor las letras que el radio en el circulo?"+cir.cuadrarTexto()); + + rectangulos rec = new rectangulos (10,8,"verder","Java"); + System.out.println("Es mayor la longitud que la dimension de la palabra? "+rec.cuadrarTexto()); + + + } +} + + + + + + diff --git b/Dia 3/miercoles20 bootcamp.txt a/Dia 3/miercoles20 bootcamp.txt new file mode 100644 index 0000000..fe3a87d --- /dev/null +++ a/Dia 3/miercoles20 bootcamp.txt @@ -0,0 +1,61 @@ +//1 +select customer.first_name from customer +join rental on customer.customer_id=rental.customer_id +where customer.customer_id=rental.customer_id; + +//2 +select customer.first_name,film.title from customer +join rental on customer.customer_id=rental.customer_id +join payment on payment.rental_id=rental.rental_id +join inventory on rental.inventory_id=inventory.inventory_id +join film on inventory.film_id=film.film_id +where customer.customer_id=rental.customer_id and rental.rental_id=payment.rental_id +and rental.return_date