double PythagTheorem(double A, double B, double C)
	{
		double D = 0;
		
		Scanner errorHandler = new Scanner(System.in);
		String solveForString = new String();
		
		
		System.out.println("Please specify variable to solve for:\n");
		if(errorHandler.hasNext()){
		solveForString = errorHandler.toString();
		char[] solveForChar;
		solveForChar = solveForString.toCharArray();
		
		
		if(C == solveForChar[0])
		{
			C = Math.pow(A, 2) + Math.pow(B, 2);
			D = Math.pow(C, 0.5);
			
		}
		else if(A == solveForChar[0])
		{
			A = Math.pow(C, 2) - Math.pow(B, 2);
			D = Math.pow(A, 0.5);
			
		}
		else if(B == solveForChar[0])
		{
			B = Math.pow(C, 2) - Math.pow(A, 2);
			D = Math.pow(B, 0.5);
			
		}
		
		}
		
		errorHandler.close();
		return D;
	}