I am new to programming.
The full task is reading characters (A-z) and ordering them from "smaller" to "bigger":
sout("give me a letter") // the user puts an 'A'
ch1=sc.next()char.At(0);
sout("give me a letter") // the user puts an ><?_)_ or w/e or actually puts a letter from A-z
ch2=sc.next()char.At(0);
Now, I have written the code in case the user puts an Upper or Lower case letter and it works. But I have no idea what to do if ch1 or ch2 or both are numbers or other.
I suppose what follows are ifs and elses checking if both chars arent letters or ch1 is (a letter) but ch2 isn't / ch2 is (a letter) but ch1 isn't or both are letters and thus (proceding to order them from "smaller" to "bigger" which is the code I have).
So... What do I do? TYVM in advance.