I encountered it while cleaning on GitHub. I wouldn't have guessed it would come to this place.
package business.bodrum.yalikavak.yalkavakbodrum;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
public class Konaklama extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_konaklama);
ArrayList<String> hoteller = new ArrayList<String>();
hoteller.add("Onur Hotel");
hoteller.add("Yüksel Butik Hotel");
hoteller.add("Panormus Hotel");
hoteller.add("Ali Baba Hotel");
hoteller.add("Marina Apartment");
LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);
TextView wordView = new TextView(this);
wordView.setText(hoteller.get(0));
rootView.addView(wordView);
}
}