Demo entry 6333147

cgbvdcb

   

Submitted by anonymous on Dec 02, 2016 at 21:27
Language: TeX. Code size: 542 Bytes.

public class AccessPoint implements Comparable<AccessPoint> {
    public String SSID;
    public String MAC;
    public int level;

    @Override
    public int compareTo( AccessPoint app) {
        if (level < app.level)
            return 1;
        else if (level == app.level)
            return 0;
        else
            return -1;
    }

    public AccessPoint(String SSID, String MAC, int level) {
        this.SSID = SSID;
        this.MAC = MAC;
        this.level = level;
    }

    public AccessPoint(){}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).