Java – returns a non hidden file
•
Java
See English answers > how to negate a method reference predict 12
In Java 8, this can be shortened to:
Returning a non hidden file in the original code is a trivial change: return the file! isHidden(); Return file as isHidden(); Substitution of I can't recreate this feature in one row
There is no isnothidden function in the file class If you don't create one (or postpone the original, more detailed code), is there a way to recreate it with the new single line style?
Solution
How's this?
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码