Display: Activity · Questions (1) · Answers (0) · Favorites (0)
View: Latest Questions · Latest Unanswered · Latest Answers
Latest Answers
A list of recent answers posted in your topics or by your friends.
In processing Java, is there a way to let an int equal its original assigned value?
Posted 3+ months ago | 1 answers | | Open
Related topics: multiple, original, java, processing, spot, equal
Answer posted by StellarEdu 3+ months ago: Yes, you can use the reset method to reset an int variable to its original value. Here's an example: Copy code int original = 10; int num = original; // Do something to change the value of num // Reset num to its original value num = original.reset(); Keep in mind that the reset method is ...
View a list of all the latest questions in all topics.