Format code with prettier (#3375)

This commit is contained in:
acbin
2022-10-03 17:23:00 +08:00
committed by GitHub
parent 32b9b11ed5
commit e96f567bfc
464 changed files with 11483 additions and 6189 deletions

View File

@ -16,7 +16,9 @@ public class MatrixChainMultiplication {
public static void main(String[] args) {
int count = 1;
while (true) {
String[] mSize = input("input size of matrix A(" + count + ") ( ex. 10 20 ) : ");
String[] mSize = input(
"input size of matrix A(" + count + ") ( ex. 10 20 ) : "
);
int col = Integer.parseInt(mSize[0]);
if (col == 0) {
break;
@ -28,7 +30,12 @@ public class MatrixChainMultiplication {
count++;
}
for (Matrix m : mArray) {
System.out.format("A(%d) = %2d x %2d%n", m.count(), m.col(), m.row());
System.out.format(
"A(%d) = %2d x %2d%n",
m.count(),
m.col(),
m.row()
);
}
size = mArray.size();