Advertisement
sergAccount

Untitled

Aug 30th, 2020
1,430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 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.spec;
  7.  
  8. import java.io.Closeable;
  9. import java.io.IOException;
  10.  
  11. /**
  12.  *
  13.  * @author Admin
  14.  */
  15. public class MyResource implements Closeable {
  16.    
  17.     //
  18.     public void doSomething() throws Exception{
  19.         System.out.println("doSomethimg");
  20.     }
  21.  
  22.     @Override
  23.     public void close() throws IOException {
  24.         System.out.println("MyResource.close!!!!");
  25.     }    
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement