Search:

Type: Posts; User: Ghinou

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    609

    Multiplying BigNum

    Hello everybody !

    I am writing code to create a BigNum class and being able to add it with others and I also have to write it so I can multiply it with others, but I can't seem to get that...
  2. Re: Help for my homework with big numbers and ArrayList

    Thanks for helping me this much out !
    I improved the code, and here is what I ended up with, which works :


    public static ArrayList<Integer> MakeBigNum(int a) {
    ArrayList<Integer>...
  3. Re: Help for my homework with big numbers and ArrayList

    I think I have the answer, but I also think that it is not the straightest way to go :


    import java.util.ArrayList;
    public class BigNum {
    public static ArrayList<Integer> MakeBigNum(int a)...
  4. Re: Help for my homework with big numbers and ArrayList

    I may have find the solution with your help, could it be :


    int x = 512;
    System.out.println(x%10);
    int y = 512/10 ;
    System.out.println(y%10);
    int z = y/10 ;
    System.out.println(z%10);
  5. Re: Help for my homework with big numbers and ArrayList

    To get the 2 from 512, I need to use %10. Is this right ?
    But then how to extract the 1 and the 5 ?
  6. Re: Help for my homework with big numbers and ArrayList

    I wanted to avoid putting my asignement online, but here it is (I have not more infos about what I should do than this precisly) :

    Implement the algorithms using Java. Use test cases to verify the...
  7. Re: Help for my homework with big numbers and ArrayList

    Oh, I am sorry. I did not understand your question in that way !
    The constructor should only put the number in an ArrayList, but if it is an ArrayList, how could I multiply these two numbers ?
    I...
  8. Re: Help for my homework with big numbers and ArrayList

    We are supposed on the next question to add up two BigNum and finally to multiply two BigNum.
    Thank you very much for your help !
  9. Re: Help for my homework with big numbers and ArrayList

    I do not understand either why we have to use the modulo...
  10. Help for my homework with big numbers and ArrayList

    Hello everybody,

    I need help for a project in Java. I am a fresh beginner and I do not understand all the whys and hows.
    We were asked to create a Java Class BigNum which should enable us to...
Results 1 to 10 of 10