Question: import java.util.Scanner; public class Exercise02_15 { public static void main(String[] args) { // Define object to read info from KB Scanner input = new Scanner(System.in);

import java.util.Scanner; public class Exercise02_15 { public static void main(String[] args) { // Define object to read info from KB Scanner input = new Scanner(System.in); // Enter the 1st point System.out.print( "Enter x1 and y1: "); double x1 = input.nextDouble(); double y1 = input.nextDouble(); // Enter the 2nd point System.out.print("Enter x2 and y2: "); double x2 = input.nextDouble(); double y2 = input.nextDouble(); // Compute the distance double distance = Math.pow( (x2 - x1 ) * (x2 - x1) + (y2 - y1 ) * (y2 - y1) , 0.5 ); System.out.printin("The distance between the two points is " + distance); } } 

COMPILER ERROR MESSAGES

Exercise02_15.java:28: error: cannot find symbol System.out.printin("The distance between the two points is " + ^ symbol: method printin(String) location: variable out of type PrintStream 1 error

I DONT KNOW WHY I GOT AN ERROR?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!