TextMate support for Java Velocity. Contribute to textmate/java-velocity.tmbundle development by creating an account on GitHub.
public static void matrixMultiplicationTest() { int[][] tempFirstMatrix = new int[2][3]; for(int i = 0; i<tempFirstMatrix.length; i++) { for (int j = 0; j<tempFirstMatrix[0].length; j++) { tempFirstMatrix[i][j] = i+j; } } System.out.println("The first matrix is : ...
## Track the iteration with Velocity's loop counter #foreach ( $outer in [-1..1] ) Iteration $velocityCount of outer loop: $outer #foreach ( $inner in ["one", "two"] ) Iteration $velocityCount of inner loop: $inner #end #end Listing 8.38 Atemplate demonstrating the use of Veloc...
for (int i = 0; i < m; i++) { for (int j = 0; j < p; j++) { for (int k = 0; k < n; k++) { resultMatrix[i][j] += paraFirstMatrix[i][k] * paraSecondMatrix[k][j]; } } } return resultMatrix; } public static void matrixMultiplicationTest(){ int[][] tempFi...