Horje
using condition for each loop Code Example
using condition for each loop

public class Sample {
    public static void main(String[] args) {
        String names[] = { "Jasmine", "Lyka", "Marbie", "Soleen", "Tiny" };
        for (String name : names) {
            if (name.equalsIgnoreCase("Soleen")) {
                System.out.println("We found " + name);
            } else {
                System.out.println(name);
            }
        }
    }
}




Java

Related
javac celar Code Example javac celar Code Example
url encode not working spring boot oauth2 Code Example url encode not working spring boot oauth2 Code Example
using ..replace() in jShell/java Code Example using ..replace() in jShell/java Code Example
Linked list implementation in Java source code Code Example Linked list implementation in Java source code Code Example
java biginteger multiply Code Example java biginteger multiply Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8