This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Array { | |
func chunked(by chunkSize: Int) -> [[Element]] { | |
return stride(from: 0, to: self.count, by: chunkSize).map { | |
Array(self[$0 ..< Swift.min($0 + chunkSize, self.count)]) | |
} | |
} | |
} | |
extension Array { | |
mutating func shuffle () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainClass { | |
public static void main(String[] args) { | |
Scanner lop = new Scanner(System.in); | |
List<Pair> pairList = new ArrayList<>(); | |
System.out.println("Enter number total number of people to group"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VendorNewAdapter extends FirebaseRecyclerAdapter<NewsPaper, NewsPaperHolder> implements SimpleAlertDialog.SingleChoiceArrayItemProvider{ | |
private static final int REQUEST_CODE_SINGLE_CHOICE_LIST = 34005; | |
private static final int REQUEST_CODE_SINGLE_Any_CHOICE_LIST = 340005; | |
private static final java.lang.String CHOICE_DIALOG = "dialogTagChoice"; | |
private boolean isColorsInverted = false; |
NewerOlder