How can i find the Euclidean distance of 2D matrix in java.is it possible like Math.pow(x,2)

Write a method.

What have you tried? Show some code, and what you need. We will NOT do any of your homework, just help you with the problems with it.

java have any default method to find the Euclidean distance

I doubt it does. The Math class would be the place to look.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.