Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package principal;
- import java.util.Scanner;
- public class Fichario {
- private Triangulo t;
- private int hip;
- private Scanner sc;
- public Fichario(Triangulo t) {
- super();
- this.t = t;
- Scanner sc = new Scanner(System.in);
- }
- public void insere(){
- int cateto1, cateto2;
- System.out.println("Digite o 1º Cateto: ");
- cateto1 = sc.nextInt();
- System.out.println("Digite o 2º Cateto: ");
- cateto2 = sc.nextInt();
- t = new Triangulo(cateto1, cateto2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement