The problem is that, ok, let's get two dates like 4/5/2023 and 6/7/2023. I use the Scanner in java to input these dates. However, the code I keep writing keeps giving me errors and is a pain in the ass to read.
Also I'm a beginner at java and this is for a project so I'm not using in built functions or things like BigDecimals
Is there a way to solve this without using Nested Loops or ArrayLists? because they take too long and are hard to debug
What I have tried:
I have tried to use ArrayLists and repeated loops.
like, for (int i = Month1, i < Month2, i++){
}
for(int x = Day1, i < Day2, x+=){
}
but these are too complex and hard to read
Is there an easy way to do this without the Calendar function?