hellow world code example
Example 1: hello world
//This is a simple Hello World program.
public class hello world {
public static void main(Strin[] args) {
System.out.println("Hello World");
}
}
Example 2: hellow world
val inflater = context.layoutInflater
val rowView = inflater.inflate(R.layout.custom_list, null, true)
val titleText = rowView.findViewById(R.id.title) as TextView
val imageView = rowView.findViewById(R.id.icon) as ImageView
val subtitleText = rowView.findViewById(R.id.description) as TextView
titleText.text = title[position]
imageView.setImageResource(image[position])
subtitleText.text = des[position]
return rowView