Main.java:6: ‘)’ expected public void go(String… y, int x) { ^ Main.java:6: ‘;’ expected public void go(String… y, int x) { ^ 2 errors"
public class Demo { public static void main(String args[]) { new Demo().go("hi",1); new Demo().go("hi","world",2); } public void go(String y,int x) { System.out.print(y[y.length-1]+""); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)