print array without brackets javascript
var numbers = [4,3,2,1];
console.log(numbers.join(' '));
// 4 3 2 1
print array without brackets javascript
var numbers = [4,3,2,1];
console.log(numbers.join(' '));
// 4 3 2 1
how to print a matrix without braces in java
for ( int i = 0; i < rows; i++) { //for each row
String row = Arrays.toString(matrix[i])
.replace(",", "") //remove the commas
.replace("[", "") //remove the left bracket
.replace("]", "") //remove the right bracket
.trim(); //remove trailing spaces from partially initialized arrays
System.out.println(row);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us