Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: jalil pourmalek
Added: Feb 3, 2018 6:53 PM
Views: 20
Tags: no tags
  1. import java.util.Scanner;
  2. public class Ex001 {
  3.     public static void main(String[] args) {
  4.         String[] array = new String[2];
  5.         array[0]="ali taghavi";
  6.         array[1]="ali taghavi";
  7.        
  8.         System.out.println(array[0].equals(array[1]));
  9.                
  10.     }
  11.    
  12. }
  13.