I need to compare 9 Integers to find out which is bigger, and i need the bigger to be in the first textview the second bigger integer to be in the second textview and so on.
The integers are collected by another activity
//All the integers are not constant the numbers is just for the example
integer1 = 10
integer2 = 4
integer3 = 13
integer4 = 21
integer5 = 20
integer6 = 2
integer7 = 32
integer8 = 100
integer9 = 23
//Heres the textviews
WinnerTextView = findViewById(R.id.WinnerTextView);
SecondTextView = findViewById(R.id.SecondTextView);
ThirdTextView = findViewById(R.id.ThirdTextView);
ForthTextView = findViewById(R.id.ForthTextView);
FifthTextView = findViewById(R.id.FifthTextView);
SixthTextView = findViewById(R.id.SixthTextView);
SeventhTextView = findViewById(R.id.SeventhTextView);
EigthTextView = findViewById(R.id.EighthTextView);
NinthTextView = findViewById(R.id.NinthTextView);
I tried with if, but its gonna take like 1000 lines of code.