I have some problems about char[] method. I am working on some code block in java. And i need to use Turkish characters in my program. But originally codes in russian languages.
Here original codes
TableRow row = null;
int w = 0;
for (char q = 'A'; q <= 'Я'; q++)
{
if (w++ % columns == 0) {
row = new TableRow(AlphabetActivity.this);
addView(row);
}
final Button button = new Button(AlphabetActivity.this);
button.setBackgroundResource(R.drawable.selector_dashboard_button);
button.setText("" + q);
button.setTag(q);
with this codes i've got this results https://i.stack.imgur.com/AqUCO.jpg
When i change this part like this
for (char q = 'a'; q <= 'z'; q++)
i am getting this results https://i.stack.imgur.com/dZcZN.jpg
When i change like this (this time i write "A" with keybord(manually) i mean not original "A")
for (char q = 'A'; q <= 'Я'; q++)
I've got this https://i.stack.imgur.com/9a6ni.jpg
I really didn't understand what i am deal with. And if i use this(first codes)
for (char q = 'a'; q <= 'z'; q++)
and deleted this
int w = 0;
if (w++ % columns == 0)
I've got all latin alphabet like this https://imgur.com/7NdP0kU
But i need Turkish characters.
I tried some solutions that i saw on stackoverflow like these
char[] q ={ 'a', 'b', 'ç', 'd', 'e' };
char[] q = "abcdefghijklmnopqrstuvwxyz".toCharArray();
And many more, but when i try these codes i getting this https://i.stack.imgur.com/W4Jei.jpg
So is there any expert to help me?