public static int maxArr(int[] arr) {
int maxValue = arr[0];
for (int i = 1; i < [Link]; i++) {
if (arr[i] > maxValue) {
maxValue = arr[i];
}
}
return maxValue;
}
--------------------------------------------------------------------
public static String extractFirstn (String str) {
String result = " ";
for(int i=0; i<=[Link](); i++) {
result = [Link](0,[Link]());
}
return result;
}
===============================================================================
public static String extractLastn(String str) {
String result = " ";
int len = [Link]();
for (int i = len - 1; i >= 0; i--) {
result = result + [Link](i);
}
return result;
}
===================================================================================
=
public static boolean isdigit(char ch) {
boolean b = [Link](ch);
return b;
}
================================================================
public static boolean Containsdot(String str) {
boolean b = [Link](".");
return b;
}
===============================================================
public static int lastIndex(String str) {
int result;
result = [Link]('.');
return result;
}
=================================================================