Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Re: How to perform operations on arguments with type OBJECT?

    A good example of the overloading Norm suggests is demonstrate in Math (Java Platform SE 6)
    For example, the abs/min/max methods have several methods which accept different primitives but accomplish...
  2. Re: How to perform operations on arguments with type OBJECT?

    java.lang is a default import so there is not need to explicitly import (give it a try and see). Your methods should define what they accept and the precision they require. If you need floating point...
  3. Re: How to perform operations on arguments with type OBJECT?

    If it is just a mathematical operation, define the method parameters as primitives which can be used directly for mathematical operations. Alternatively, you could pass something like a Number...
Results 1 to 3 of 3