Advertisement
sergAccount

Untitled

Jun 26th, 2021
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 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 com.mycompany.ex14;
  7.  
  8. public class Main {
  9.    
  10.     public static void main(String[] args) {
  11.         // для вызова статического метода указываем
  12.         // имя класса.имя метода
  13.         //double a = MathUtil.calcRectArea(5, 6);
  14.         double a = MathUtil.calcRectArea(5, 6);
  15.         System.out.println("a=" + a);
  16.        
  17.         System.out.println("a=" + MathUtil.calcRectArea(5, 6));
  18.     }    
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement