Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double calculateDPI(int width, int height, double screenSize) {
        return Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2)) / screenSize;
    }
}