Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

String length equality

import java.util.Scanner;

public class StringLengthEquality {
    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.length()==s2.length()){
            System.out.println("true");
        }else {
            System.out.println("false");
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: java escribir ventana grafica 
Java :: android java random fragment on create 
Java :: convert object address to string in java 
Java :: java 001 
Java :: increasing the element without any replacement in java program 
Java :: import claim jwt 
Java :: what is void in java 
Java :: how to take input an array in java 
Java :: batch file to switch between java version 
Java :: how to do 4th root java 
Java :: kubernetes java client create namespace 
Java :: fibonacci series 
Java :: jdbc api in java 
Java :: how do I change the opacity of a JButton 
Java :: doubly linked list java add an element to the end 
Java :: binary search tree 
Java :: polymorphism vs overriding in java 
Java :: identifier in java 
Java :: java android join array list 
Java :: final method java 
Java :: java compare char 
Java :: extract substring in string java 
Java :: java transaction example 
Java :: jlabel icon size 
Java :: declare variable java 
Sql :: mysql how to truncate table with foreign keys 
Sql :: convert utc to est sql 
Sql :: how to get notinteger value in sql 
Sql :: get column name sql server 
Sql :: copy table sql server 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =