Advertisement
sergAccount

Untitled

Jan 23rd, 2021
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 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.app2;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class MyFunction {
  13.     // f(x) = x
  14.     public int calc(int x){
  15.         try {
  16.             //
  17.             Thread.sleep(10000);
  18.         } catch (InterruptedException ex) {
  19.             ex.printStackTrace();
  20.         }
  21.         return x;
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement