题解 | #按照格式输入并交换输出#
按照格式输入并交换输出
http://www.nowcoder.com/practice/95eb723a3e854376a7eb6d116cc7d875
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
String[] strs = s.split(",|=");
System.out.println(strs[0] + "=" + strs[3] + "," + strs[2] + "=" + strs[1]);
}
}