Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions