Search:

Type: Posts; User: hns1984

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    1,819

    Re: why it is essential to use (int) ?

    Wrong, float literal is a double value, implicitly.

    java exception
  2. Replies
    4
    Views
    1,819

    Re: why it is essential to use (int) ?

    Because the literal "7.0" is implicit double value, so the result of 7.0/2 will be a double number, theno you need to put a type cast (int) to convert the result into an integer which is assigned to...
Results 1 to 2 of 2