public boolean validate_results(ArrayList<String> a)
	{
		String out="";
		if(a.get(0)==null)
		{
			out+="Input file not set \n";
			
		}
		if(a.get(2)==null)
		{
			out+="Output file not set \n";
			//raise error
		}
		if(a.get(5).matches("yes"))
		{
			if(a.get(7).length()>0)//width
			{
				//pass
				if(a.get(7).matches("[0-9]+"))
				{
					//numbers only present
				}
				else
					out+="Width can include only numbers & no other characters\n";
				
			}
			else
			{
				//width not set
				out+= "Image width not set\n";
				//System.out.println("width not set");
			}
			if(a.get(6).matches("no"))
			{
				if(a.get(8).length()>0)//height
				{
					//pass
					if(!a.get(8).matches("[0-9]+"))
						out+="Height can include only numbers & no other characters\n";
				}
				else
				{
					//raise height error
					out+= "Image height not set\n";
					//System.out.println("height not set");
				}
			}
		}
		display_writer(out);
		if(out.length()>0)
			return false;//invalid
		else
			return true;//valid
	}