Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

control statements

/**  * @author Java Jill  * @version 1.0*/public class IfExample1 {  public static void main(String[] args) {   try {    String s1 = args[0];    System.out.println("Your guess was: + s1);    if(s1.equals("red")) {     System.out.println("Your guess is my favorite color!");     System.out.println("Good job");   } catch (Exception e) {    System.out.println("Error - please include an argument");   } }}
Comment

PREVIOUS NEXT
Code Example
Java :: how to reinstall nginuity 
Java :: how to use advanced math in java 
Java :: como detener un void java 
Java :: converting temperature from fahrenheit to celsius 
Java :: public class MyClass { public static void main(String[] args) { System.out.println("Hello World"); } } 
Java :: efficient generic duplicate finding class java 
Java :: java Map to LinkedHashMap with ascending order of keys 
Java :: handle customized popup in selenium 
Java :: constraints in Grails 
Java :: how to write no in java 
Java :: set bean properties 
Java :: core java mcq 
Java :: space between lines textview android 
Java :: google pass api integration in java 
Java :: List of tuple to map + jpa 
Java :: find minimum of array java 
Java :: request.iter_content(1024 * 1024) 
Java :: Java continue with Nested Loop 
Java :: java private access modifier 
Java :: detect jpanel size change listener 
Java :: java arduino 
Java :: android how to get position of a row in listview 
Java :: xml definition file for spring 
Java :: Java private no-arg constructor 
Java :: Java (sun-jdk-1.8.0_51) sample 
Java :: java casting method 
Java :: binary search 2D java 
Java :: how to reorder numbers in a list randomly in java 
Java :: how to send rest request graphql java 
Java :: fail if condition not met in java if condition 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =