public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		
		//only medicine information
		
		System.out.println("Enter the medicine name exact, Eg.\"Combicold\" :");
		InputStreamReader irs1 = new InputStreamReader(System.in);
		BufferedReader in1 = new BufferedReader(irs1);
		String brand1 = in1.readLine();
		TrueMDAPI.key="yash6992";
		
		Medicine medicine= TrueMDAPI.getMedicineData(brand1);
		printMedicine(medicine);
		
		//all medicine alternatives with information for each
		
		System.out.println("Enter the medicine name exact for alternatives, Eg.\"Combicold\" :");
		InputStreamReader irs2 = new InputStreamReader(System.in);
		BufferedReader in2 = new BufferedReader(irs2);
		String brand2 = in2.readLine();
		
		HashMap<String, Medicine> medicineAlternatives= TrueMDAPI.getMedicineAlternatives(brand2);
		int count=1;
		System.out.println(medicineAlternatives.size());
		for (String altBrand: medicineAlternatives.keySet()){
		   System.out.println("alternative "+count); count++;
           Medicine value = medicineAlternatives.get(altBrand);  
           printMedicine(value);  
          } 
	//all suggestions for any search string
		
		System.out.println("Enter the text for suggestions, Eg.\"Com\" :");
		InputStreamReader irs3 = new InputStreamReader(System.in);
		BufferedReader in3 = new BufferedReader(irs3);
		String brand3 = in3.readLine();
		System.out.println("Enter the limit for no. of suggestions, Eg.\"10\" or \"0\" for no limit");
		BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
		

		int limit=Integer.parseInt(b.readLine());
		if(limit==0)
		{
			ArrayList<String> medicineSuggestions=TrueMDAPI.getMedicineSuggestions(brand3);
			
		}
		else
		{
			ArrayList<String> medicineSuggestions=TrueMDAPI.getMedicineSuggestions(brand3,limit);
			
		}
			
		ArrayList<String> medicineSuggestions=TrueMDAPI.getMedicineSuggestions(brand3,limit);
		
		System.out.println(medicineSuggestions.size());
		for(String brand: medicineSuggestions)
		{
			System.out.println(brand);
		}
		
		
	}