how to use string variables with an if statement in java
String a = "Hello"
if (a.equals("Hello") {
System.out.println("Variable A is Hello");
} else {
System.out.println("Variable A is not hello :(");
}
how to use string variables with an if statement in java
String a = "Hello"
if (a.equals("Hello") {
System.out.println("Variable A is Hello");
} else {
System.out.println("Variable A is not hello :(");
}
if statement with string java
if (var.equals("text"))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us