Re: new to java, help simple project



On Mon, 30 Jun 2008 16:35:24 GMT, "ineedhelpplease" <u44592@uwe>
wrote, quoted or indirectly quoted someone who said :


?A data structure to represent large numbers: for example, a string or an
array of digits in a number
?public BigInt(String val)
A constructor that uses a string representation of the integer for
initialization. The string may contain leading zeros. Do not forget that
zero is a valid number.
?public void display()
A method to write numbers. Do not write leading zeros, but if the number
consists of all zeros, write a single zero.
?public BigInt add(BigInt val)
A method that returns the sum of val and the instance of BigInt that invokes
add.

see http://mindprod.com/jgloss/homework.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Interpretation of literal reals
    ... point is omitted the string of digits is right-justified ... when blanks are being treated as zeros. ... to make the blanks visible. ...
    (comp.lang.fortran)
  • Re: How to Force Field Size
    ... will not *store* leading zeros, ... Public Function LeftPadToLength(strVal As String, intLength As Integer, ... I have decided to change my numbers into the 10 digits ... >>End Sub ...
    (microsoft.public.access.modulesdaovba)
  • Re: Distinguishing between characters and numbers
    ... digits is an error. ... "The input field is either an IEEE exceptional specification or ... considered as zeros. ... value separators (unless they are in a character input string). ...
    (comp.lang.fortran)
  • Re: Pseudorandom Hashing
    ... Tim Wescott wrote: ... > getting a long string of zeros, a message is run through a CRC ... is the length of the pattern. ...
    (sci.electronics.design)
  • Re: User command to generate a formatted random number?
    ... substitute, and it will substitute all occurrences of 'a' with 'b'. ... empty strings for 'b'. ... The first pattern is '000$' where the zeros mean literal zeros and $ ... sed seems to replace the first instance of "se" here and not all of ...
    (comp.os.linux.misc)