Advertisement
sergAccount

Untitled

Feb 13th, 2021
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 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.app11;
  7.  
  8. /**
  9.  *
  10.  * @author Admin
  11.  */
  12. public class MyResource implements AutoCloseable{
  13.    
  14.     public MyResource(){
  15.         System.out.println("MyResource created!!!");
  16.     }
  17.     @Override
  18.     public void close() throws Exception {
  19.         System.out.println("MyResource.close!!!!!!!!!!!!!!!!!!!!");
  20.     }
  21.    
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement