Snippets

cutiko Enhanced Loops for Arrays

Created by cutiko
1
2
3
4
5
6
7
8
public class MyClass{

    String [] names ={"James", "Larry", "Tom", "Lacy"};
    for( String name : names ) {
         Log.d("APP_TAG_NAME", "Name: ", name);
      }

}

Comments (0)