Develop a Java program to find the names of those companies which have more than 10,000 employees. Given the names and no. of employees of 4 companies.

class employ
{
 public static void main(String[] args) 
 {
  String name[] = {"TCS", "IGlobe", "Infosys", "Tech Mahendra"};
  int emp[] = {164000, 9242, 143088, 10023};
  for(int i=0;i<4;i++)
  {
   if(emp[i]>10000)
    System.out.println(name[i] +" - " +emp[i]);
  }  
 }
}
/*   OUTPUT!!!
TCS - 164000
Infosys - 143088
Tech Mahendra - 10023
*/
Copyright © LetML. Blogger Templates Designed by OddThemes