Java don't let me to use isEmpty

I declared a OptionalDouble as a marix, and I can't to use a if with isEmpty for this: if (polEXP_Lim[f][c].isEmpty()){ } All of this obviously inside of two for's Marks me the error in isEmpty. A way to solve it or an alternative to isEmpty?
3 Replies
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @Franscis123$#! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot8mo ago
Please format your code to make it more readable. For java, it should look like this:
​`​`​`​java
public void foo() {

}
​`​`​`​
​`​`​`​java
public void foo() {

}
​`​`​`​
JavaBot
JavaBot8mo ago
Post Closed
This post has been closed by <@1117467821270650921>.

Did you find this page helpful?