assert用法和NaN class AssertTest{ public static void main(String arg[]){ float f1=Float.NaN; float f2=f1; float f3=1.2f; try{ assert(f2==f1):f2=2; f3=1.5f; }catch(AssertionError e){f3++;} f3+=f2; float 2023-06-10 47 点赞 0 评论 71 浏览