In my Calculator app, I plan on adding a GCF and LCM function. However, it appears that I need a double linked list in order to do this(where one is for the numbers and the other is for any number that can divide from it). I'm not asking for you guys to write me a GCF and/or LCM function. I'm only asking on how to set up a double linked list up as I don't exactly know how to.
In C, one would have to create as structure and then declare a pointer within a structure in order for it to create addresses without predefining. You would then define three more structure pointers outside of the structure. In a double linked list, you would then declare yet three more structure pointers to deal with the second list. It somewhat works the same way in C++, only that you would only use a class instead of a structure.
Based on the research that I did, you would have to use the LinkedList and List class in Java. However, you also need a node which baffles me because I don't exactly know what that is and how to set one up appropriately. I basically need to store double values(as in number, obviously).
In C, one would have to create as structure and then declare a pointer within a structure in order for it to create addresses without predefining. You would then define three more structure pointers outside of the structure. In a double linked list, you would then declare yet three more structure pointers to deal with the second list. It somewhat works the same way in C++, only that you would only use a class instead of a structure.
Based on the research that I did, you would have to use the LinkedList and List class in Java. However, you also need a node which baffles me because I don't exactly know what that is and how to set one up appropriately. I basically need to store double values(as in number, obviously).