Error in my code

Discussion in 'Plugin Development' started by InkzzzMC, Jan 9, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    InkzzzMC

    Code:

    Code:
        public String getMessage(String[] args) {
            StringBuilder sb = new StringBuilder();
            for(int i = 1 ; i < args.length; i++){ // change 1
                sb.append(args[i]).append(" ");   
            }
         }    
    This line is the error:
    Code:
    getMessage(String[] args)
     
  2. Offline

    1Rogue

    You're not returning anything.
     
  3. Offline

    InkzzzMC

    @1Rogue What return would I do, as return null; just broadcasts (null)
     
  4. Offline

    SuperOriginal

Thread Status:
Not open for further replies.

Share This Page