While Looping and if Problems in Java

<>

This question already has an answer here:

Answers


if (action == "a"){
    System.out.println("if");
}

You're comparing String types. Use equals.

if(action.equals("a") { }

Need Your Help

Executing a query in SQLite within xcode

ios database xcode sqlite nsarray

Am i doing this right, because the array is returning a count of 0.

How to make hudson aggregate results provided in build artifacts over several builds

hudson

I have a hudson job that performs a stress test, torturing a virtual machine for several hours with some CPU- and IO-intensive tasks. The build scripts write a few interesting results into several ...