public class MainActivity extends AppCompatActivity { EditText editAdam; Button buttonAdam; TextView textAdam; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); editAdam = findViewById(R.id.editadam); buttonAdam = findViewById(R.id.buttonadam); textAdam = findViewById(R.id.textadam); } public void OnayAdam(View view) { int sayiAy = Integer.parseInt(editAdam.getText().toString()); String ay = ""; editAdam.setText(""); switch (sayiAy){ case 1: ay="OCAK"; break; case 2: ay="ŞUBAT"; break; case 3: ay="MART"; break; case 4: ay="NİSAN"; break; case 5: ay="MAYIS"; break; case 6: ay="HAZİRAN"; break; case 7: ay="TEMMUZ"; break; case 8: ay="AĞUSTOS"; break; case 9: ay="EYLÜL"; break; case 10: ay="EKİM"; break; case 11: ay="KASIM"; break; case 12: ay="ARALIK"; break; default: ay="YANLIŞ BİLGİ"; break; } textAdam.setText(ay); } } //////////////////////////////////////////////////