• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java 6 : Grains clarification of purpose

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you possibly clarify this purpose a little more? The boundaries for these are easily looked up.

Purpose: To learn the boundaries of int and long (accuracy), to become more familiar with the java libraries.

In addition the Java 1.4 link is a bit dated, correct? You are taken to a 'End of Life' page.

Thank you,
Jeremy
 
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeremy,

Indeed, they are easy to look up - so that part of the assignment is quickly accomplished.

Katrina
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And what you might do when you need something beyond that boundary.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm curious to know what the Instructor did in the 35 lines of code. My solution was 13 lines. And, I never did figure out what I was suppose to find the API (whatever version). What am I missinig?

James McLeod

class Grains {
[code removed by Pauline]
}


[Sorry, James, we ask not to post code in the Cattle Drive. It's so others who want to figure it out for themselves can do just that. Oh, almost forgot - welcome to JavaRanch and the Cattle Drive! - Pauline]
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For one thing, the cattle drive specifies java 1.4. the printf method you use is not available until 1.5.

second, your code does not conform the Style guide.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting my own version doesn't compile under 1.4 hmm
 
reply
    Bookmark Topic Watch Topic
  • New Topic