Here you can find the source of isEmptyturnlane(String turns)
public static boolean isEmptyturnlane(String turns)
//package com.java2s; // License: GPL. For details, see LICENSE file. import java.util.Arrays; import java.util.List; public class Main { public static boolean isEmptyturnlane(String turns) { List<String> turnsList = Arrays.asList("reverse", "sharp_left", "left", "slight_left", "merge_to_right", "through", "reversible", "merge_to_left", "slight_right", "right", "sharp_right"); for (String tl : turnsList) { if (turns.contains(tl)) { return true; }/*from w w w . j ava 2s . c om*/ } return false; } }