JAVA simple Array refresher & some String methods

int[] holiday = { 1, 15, 50, 148, 185, 246, 281, 316, 326, 359 };
for (int i = 0; i < holiday.length; i++ ) {
someFunc(holiday[i]);
}

 

str.length()
str.charAt(6)
str.substring(26, 32)
str.indexOf(‘a’)
str.toUpperCase())

Leave a Reply

You must be logged in to post a comment.