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

Java Interface for Cube Calculation

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

Java Interface for Cube Calculation

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

File: /home/mitacsc/tyi341/printcube.

java Page 1 of 1

interface printnumber
{
public void print(int num1);
}

public class printcube


{
public static void main(String[] args)
{
printnumber p=n->[Link]("cube is:"+n*n*n);
[Link](2);
}
}

You might also like