blackpab

Java PoleAA

Feb 27th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package poleprostokata;
  7.  
  8. import java.util.Scanner;
  9.  
  10. /**
  11.  *
  12.  * @author student
  13.  */
  14. public class PoleProstokata {
  15.  
  16.     /**
  17.      * @param args the command line arguments
  18.      */
  19.     public static void main(String[] args) {
  20.         // TODO code application logic here
  21.  
  22.         Scanner skaner = new Scanner(System.in);
  23.         System.out.print("BokA = ");
  24.         int BokA = skaner.nextInt();
  25.         System.out.print("BokB = ");
  26.         int BokB = skaner.nextInt();
  27.  
  28.         LiczPole obiekt = new LiczPole(BokA, BokB);
  29.         obiekt.oblicz();
  30.         System.out.println("Pole = " + obiekt.wypisz());
  31.  
  32.     }
  33.  
  34. }
Add Comment
Please, Sign In to add comment