java – System.out.println not recognized in Pramp?

Can anyone point out why I’m getting an error for System.out.println? I’m trying to test the output. Here is my code:

import java.util.*;

class Solution {

  static int() getIndicesOfItemWeights(int() arr, int limit) {
    for (int i = 0; i < arr.length; i++){
      for(int j = i+1; j < arr.length; j++){
        if (arr(i) + arr(j) == limit){
          return new int() {i, j};

  public static void main(String() args) {

This is the error I’m getting:
/home/pramper/src/main/java/ error: illegal start of expressionSystem.out.println(getIndiciesOfItemWeights((1,3,2),4));^