0% found this document useful (0 votes)
4 views1 page

Java Methods for Temperature and Geometry

The document contains a Java class named TestClass that demonstrates the use of a ComputeMethods class. It converts a temperature from Fahrenheit to Celsius, calculates the hypotenuse of a triangle, and simulates rolling dice. The results of these computations are printed to the console.

Uploaded by

Muhammad Rizky
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Java Methods for Temperature and Geometry

The document contains a Java class named TestClass that demonstrates the use of a ComputeMethods class. It converts a temperature from Fahrenheit to Celsius, calculates the hypotenuse of a triangle, and simulates rolling dice. The results of these computations are printed to the console.

Uploaded by

Muhammad Rizky
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package [Link].

problem4_1;

public class TestClass {


public static void main(String[] args) {

//NAMA : Muhammad Rizky


//NPM : G1F023036

ComputeMethods cm = new ComputeMethods();

double hasilnya = [Link](100.4);


[Link]("Temp in celcius is "+hasilnya);

double hasilini = [Link](9, 6);


[Link]("Hypotenuse "+hasilini);

int acakhasil = [Link]();


[Link]("The sum of the dice values is "+acakhasil);

}
}

You might also like