Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

string equlity

import java.util.Scanner;
import java.lang.String;
public class StringEquality {
    public static void main(String[] args) {
        Scanner S1 = new Scanner(System.in);
        Scanner S2 = new Scanner(System.in);
        String s1 = S1.nextLine();
        String s2 = S2.nextLine();
        if (s1.startsWith(s2)){
            System.out.println("true");
        } else{
            System.out.println("false");
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: what does .set do in java 
Java :: how to switch between two stylesheets in javafx. 
Java :: regex pattern to mathc IP address 
Java :: data validation dialog box android 
Java :: how to make easy animations in canva 
Java :: setlist arraylist java swing example 
Java :: EXPECTTIONS JAVA 
Java :: javax.servlet.Filter 
Java :: Java Standard Library Method 
Java :: android int color = ContextCompat.getColor(getContext(), mColorResourceId); 
Java :: como limitar o random em java 
Java :: how is boolean array initialized if no input is given java 
Java :: DMC5 performace mod 
Java :: Java Advantages of Anonymous Classes 
Java :: Java Create a FileOutputStream 
Java :: isblank vs isempty java string utils 
Java :: x squared unicode java code 
Java :: java netbeans one column enabled 
Java :: jdbc outside of ide 
Java :: how to use old android studio project 
Java :: spring-boot java header Content-Type constant 
Java :: check if there is connexion android studio 
Java :: aspectj after returning 
Java ::         System.out.println("Welcone to GeeksforGeeks"); 
Java :: Java @Repeatable 
Java :: ClassCastException Casting toArray() method 
Java :: adding matrix 
Java :: java method 
Java :: java yaml unchecked cast 
Java :: how to write to a txt file in java in the end 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =