olivaw

Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

126 Neutral

About olivaw

  • Rank
    Newbie
  1. Problems with clipping lines

    Hello, shouldn't you be swapping v1 with v2 when code2 is being used? I liked what you did there with code1 & code2 test, smart!
  2. Output Question

    Ryan,     In Java, the way you write constants define their types. When you write "86400/7", the compiler understands that the two numbers are integer and the result should be integer also, so instead of getting "12342.85714285714" into "birth" you are getting only "12342".     Try to write your constants differently: instead of 86400, use 86400.0 or 86400d.     Take a look here, in the topic "Floating-point literals".   Hope this helps.