Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started