Search:

Type: Posts; User: thisbeme

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,499

    Re: Need help with my double return function.

    Thanks I tried it and it worked!

    im just wondering if thats the only way to force the compiler to use floating point arithmetic?
  2. Replies
    4
    Views
    1,499

    Need help with my double return function.

    public class Rectangle{

    public int num;
    public int den;
    public double val;

    public void display(){
    System.out.println(num);
    System.out.println(den);
    }
Results 1 to 2 of 2