Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String getOtherSpotUser(String spot, String user) {
String[] split = spot.split(":");
return split[0].equals(user) ? split[1] : split[0];
}
}