Demo entry 6635768

Anagramm

   

Submitted by anonymous on Aug 19, 2017 at 16:30
Language: Java. Code size: 423 Bytes.

import java.util.Arrays;

public class agramm {

    public static boolean test(char s[], char t[]){
        Arrays.sort(s);

        int i = 0;
        if(s.length == t.length){
            for(i = 0; i< s.length; i++){
                if(s[i] == t[i]){
                    return true;
                }
            }
        }else{
            return false;
        }

        return false;
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).