textView.setText(context.getClass().getSimpleName());
Why does this code works and sets the textView "App" , BUT whith if
if(context.getClass().getSimpleName() == "App") {
holder.textView.setTextColor(Color.RED);
}
It does not work. Why doesn't it? Sorry for dumbness. I'm new in this