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
| /* Source: https://www.journaldev.com/1716/iterator-design-pattern-java */ | |
| package com.journaldev.design.iterator; | |
| public enum ChannelTypeEnum { | |
| ENGLISH, HINDI, FRENCH, ALL; | |
| } | |
| package com.journaldev.design.iterator; |
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
| import java.util.HashMap; | |
| /** The Command interface. */ | |
| interface Command { | |
| void execute(); | |
| } | |
| /** The Invoker class */ | |
| class Switch { | |
| private final HashMap<String, Command> commandMap = new HashMap<>(); |
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
| #include<stdio.h> | |
| #include<math.h> | |
| #include<string.h> | |
| #include<stdlib.h> | |
| // Merging of left and right elements | |
| void Merge(int *A,int *left,int LC,int *right,int RC,long int* count){ | |
| int i=0,j=0,k=0; | |
| /*Juzt for confirmation of numbers passed on to this subroutine |