Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cattle Drive Assignment 1.6

 
Paul Undiano
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give me any more hints on the class that I need to use for Assignment 1.6? Is this class from a different package
than java.lang?
 
paul wheaton
Trailboss
Pie
Posts: 21383
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm gonna move this to the cattle drive forum ...
 
paul wheaton
Trailboss
Pie
Posts: 21383
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes!
(if I said any more, it would be too big of a hint)
 
craig prothero
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to recognize a new class that is needed for this assignment. Here is the code (I x'd out the actual class to not give that away) It is coming back with 2 errors when compiling:
1-Integer number to large
2-Operator * cannot be used on java.math.XXXXXX,java.math.XXXXX.
Here is the code
import java.math.XXXXXX;

class New {
public static void main (String args[]){
XXXXXX y = 271474976710656;
XXXXXX x = y*y;
System.out.println("This is a Big Integer: " + x);
}
}
Can someone help me with this? Am I importing incorrectly?
Thanks you for your help.
Craig
 
paul wheaton
Trailboss
Pie
Posts: 21383
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seek enlightenment at http://java.sun.com/products/jdk/1.2/docs/api/index.html
Browse the methods of XXXXXX ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic