Get interface constant name using its value
- by Ravisha
This might not have a major usecase in projects ,but i was just trying a POC kind of project where in i get the key code,and using its value i want to print the key name on screen
so i want to relive myself off writing switch cases ,so thinking of going by reflection.
Is there a way to get the constant integer of interface's name using its value?