GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaGeneric/Example1.java at main · AvinandanBose/JavaGeneric Expand file tree/ Copy pathExample1.javaMore file actions 18 lines (16 loc) · 524 Bytes / Copy pathExample1.javaFile metadata and controls18 lines (16 loc) · 524 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.ArrayList; public class Example1<T extends Exception> { public T get(ArrayList<T> t) throws T { return t.get(0); } public static void main(String[] args) { Example1<Exception> e = new Example1<>(); ArrayList<Exception> al = new ArrayList<>(); al.add(new Exception("Exception Thrown")); try { System.out.println(e.get(al)); } catch (Exception exception) { exception.printStackTrace(); } } } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |