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...
Type: Posts; User: Ghinou
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...
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>...
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)...
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);
To get the 2 from 512, I need to use %10. Is this right ?
But then how to extract the 1 and the 5 ?
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...
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...
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 !
I do not understand either why we have to use the modulo...
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...