• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 6 : Grains clarification of purpose

 
Jeremy Medford
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeremy,

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

Katrina
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what you might do when you need something beyond that boundary.
 
James McLeod
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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]
 
fred rosenberger
lowercase baba
Bartender
Posts: 12084
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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.
 
K. Tsang
Bartender
Posts: 3348
12
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting my own version doesn't compile under 1.4 hmm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic