After I assign the variable dateAndTime = Calendar.getInstance() , it begins to change over time. How do i fix this?

  • 3
    Wow ... Like this should not be. Show where and how you use this variable and how it turns out that it is changing. - Yuriy SPb
  • Declare the variable as final and see what happens when you compile - the compiler will tell you where it can change - Barmaley
  • Do you take it every time or save it to a variable? - Flippy
  • 3
    @Barmaley, her) 100% of the vehicle takes a calendar every rah and you need one rasch - Flippy

0