how to get ID Value from sqlite database (android studio java)

when i try to click some name from listview, i want it to return the ID from its name(in Toast Text), but i always getting result “0” wherever i click a name in listview, can you help me fix my code?, …

How to check a string is float or int?

I have a string and I know that is only contained a number. I want to check this number is int or float.

Java Array Sort descending?

Is there any EASY way to sort an array in descending order like how they have a sort in ascending order in the Arrays class? Or do I have to stop being lazy and do this myself :[