Академический Документы
Профессиональный Документы
Культура Документы
System.out.println("Length of ArrayTWO");
LengthArrayTwo = input.nextInt();
int LengthArray, i;
if (Arrays.equals(Array, ReverseArray))
System.out.println("Array it is a Palindrome array");
else
System.out.println("Array it is not a Palindrome array");
int IndexColumns = 0;
while (IndexColumns < columns) {
int IndexRow = 0;
while (IndexRow < row) {
SumColumns = SumColumns + M[IndexRow][IndexColumns];
IndexRow++;
}
Array[IndexColumns] = SumColumns;
SumColumns = 0;
IndexColumns++;
}
// print sum of each item in the column
System.out.println("Sum of each item in the column");
for (int i = 0; i < columns; i++) {
System.out.print(Array[i] + " ");
}
////////////////////// EXERCITIUL 4 ////////////////
String[] arr = { "Now", "is", "the", "time", "for", "all", "good", "men", "to",
"come", "to", "the", "aid",
"of", "their", "country" };
System.out.print("Sirul concatenat="
+ " ");
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + ",");
}
System.out.println();
double d = 102939939.939E+20;
boolean b = true;
long l = 1232874;
char[] arr1 = { 'a', 'b', 'c', 'd', 'e', 'f' };