Skip to content
Snippets Groups Projects
Commit 2aaa8da9 authored by DALI AYOUB's avatar DALI AYOUB :speech_balloon:
Browse files

Upload New File

parent bd015d1a
Branches
Tags
No related merge requests found
import java.text.DecimalFormat;
public class TestSexDec{
public static void main(String[] args) {
DecimalFormat df = new DecimalFormat("0.00");
SexDec h1 = new SexDec(4.51);
System.out.println("h1 - decimal = " + df.format(h1.getDec()) + " Sexa = " + h1.getH() + ":" + h1.getM() + ":" + h1.getS());
SexDec h2 = new SexDec(2, 32, 15);
System.out.println("h2 - decimal = " + df.format(h2.getDec()) + " Sexa = " + h2.getH() + ":" + h2.getM() + ":" + h2.getS());
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment