Campbell Ritchie wrote:I couldn't get it to work in Java12, not even with the --enable flag. I did get the new form of switch to work in Java12 with --enable however.
salvin francis wrote:Those new String deprecated methods seem to be directed towards programmers. But I wonder why would they add new deprecated methods in a new release. Perhaps these methods are used in the java source somewhere.
Deprecated, for removal: This API element is subject to removal in a future version.
This method is associated with text blocks, a preview language feature. Text blocks and/or this method may be changed or removed in a future release.
Campbell Ritchie wrote:I was taught that as sin²θ.
Mike Simmons wrote:. . . more common to see formulas using (sin (θ))^2 . . .
frosenberger wrote: We were asked to compute sin (θ^2).
Junilu Lacar wrote:I prefer the general approach used by Spring to handle checked vs unchecked: wrap low-level checked exceptions with unchecked exceptions and let the developers decide where they want to handle it. If nobody handles it, the exception just keeps getting propagated back up the application stack where it either stops the application or gets handled by a generic catch-all exception handler.