ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


Tag: Comparison


  1. If statement with String comparison fails

    == tests for reference equality. .equals() tests for value equality. == is for testing whether two strings are the same object. Comparison symbols is only can use by local variable only. Public Variable should use "equals" to compare. Java @Kroll.method public void ComparisonTest(String value) { String operation = value; String operation_local…

    Java, Titanium, If Statement, String, .equals(), ==, Comparison