package com.java_android.android;
import java.util.Scanner;
public class Android {
public static void main(String[] args) {
String[] name = {"amir", "salman", "shahrukh", "saif", "kamal"};
int[] number = {1576544, 2355778, 378467, 4556776, 584669};
for (int i = 0; i < name.length; i++) {
System.out.println(name[i]);
}
System.out.println("enter your name");
Scanner scanner = new Scanner(System.in);
String inputName = scanner.next();
for (int j = 0; j < name.length; j++) {
if (inputName.equals(name[j])) {
System.out.println(number[j]);
}
}
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)