- part of Java's support for generics, which is covered within the collections documentation;
what is <T>?
, yes we all do and the maze seems to be forever growing! Trick is not to worry as nobody can know everything, but after a while you will notice that technology changes the fundamental concepts don't.
i feel like a mouse in a very big java maze
wayne brandon wrote:My knowledge of using Java docs is weak and i feel i must really improve this now.
I got help from you guys regarding a keyboard utility class and am going through it line by line to understand it.
the first line is:
Which I understand imports a class? Optional?
compact1, compact2, compact3 What is this?
wayne brandon wrote:compact1, compact2, compact3 What is this?
java.util - this means it belongs to the java.util class?
Class Optional<T> - again....?
what is <T>?
A container object which may or may not contain a non-null value. If a value is present, isPresent() will return true and get() will return the value.
Additional methods that depend on the presence or absence of a contained value are provided, such as orElse() (return a default value if value not present) and ifPresent() (execute a block of code if the value is present).
This is a value-based class; use of identity-sensitive operations (including reference equality (==), identity hash code, or synchronization) on instances of Optional may have unpredictable results and should be avoided.
and people like Campbell and Carey and Snort
whats the best plan of action to tackle this?
wayne brandon wrote: where would you suggest i start?