//Sample07_132.java class Sample07_132 { static double[] method_04(double a, double b, double c){ double[] ans = {(2*a) , -b , (b*b-4*a*c)}; return ans; } static void printAnswer(double[] ans){ double partA = ans[0]; double partB = ans[1]; double partC = ans[2]; System.out.println(" " + partB + " +/-sqrt( "+ partC +" )"); System.out.println(" x = -------------------------"); System.out.println(" " + partA); } public static void main(String[] args){ int[][] coefficient ={ {1,-2,-1}, {1,4,1}, {1,-6,1}, {1,10,13}, {2,-4,-8}, {3,6,-6}, {1,-5,5}, {1,1,-3}, {2,-8,1}, {2,12,7}, {1,-2,-5}, {3,24,39}, {3,-8,3}, {8,24,13}, {5,-10,3}, {7,4,-1} }; for(int i=0; i