How do I save android studio data?

So I have a counter (click a button number increases) and a stopwatch. I would like to be able to store this information in the app so that they can go back and look at their previous times. I have no clue where to start, I’m just wondering if there is an easy way to go about doing that . Thanks. PS I’m using the latest android studio version and coding in java THX