Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

anonymous object java example

//for Java 10
boolean result = true;

var objResult = new Object() {
    boolean success = result;
};

System.out.println(objResult.success);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #anonymous #object #java
ADD COMMENT
Topic
Name
3+9 =