有人能告诉我一种用函数编程概念替换if语句的方法吗?没有条件运算符,谢谢。Predicate<Integer> isNegativeOrZero = i -> i <= 0; if (isNegativeOrZero.test(n)) thrownew java.lang.Error("Negative number"); } catch(Error e) {
ret
我收到以下错误
E/AndroidRuntime( 3069): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{fun.n.games/fun.n.games.HelloActivity}: java.lang.ClassNotFoundException: Didn't find class "fun.n.games.HelloActivity" on p