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
package algorithms; | |
import java.util.Arrays; | |
// Implement parallel sort, for arr.lenght >= 2500 | |
public class LargerSorter implements ISorter{ | |
@Override | |
public int[] sort(int arr[]){ |
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
package main; | |
import noun.BinarySearch; | |
public class StrategyDriver { | |
public static void main(String args[]){ | |
BinarySearch bs = new BinarySearch(); | |
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
package factories; | |
import android_widget.DialogueBox; | |
public interface IFactory { | |
public DialogueBox createDialogue(String type); | |
// public TextBox createTextBox(); | |
// public Button createButton(); |
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
package factories; | |
import android_widget.DialogueBox; | |
import lollipop_products.LollipopErrorDialogueBox; | |
import lollipop_products.LollipopInfoDialogueBox; | |
public class LollipopFactory implements IFactory{ | |
@Override | |
public DialogueBox createDialogue(String type) { |
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
package factories; | |
import android_widget.DialogueBox; | |
import nougat_products.NougatErrorDialogueBox; | |
import nougat_products.NougatInfoDialogueBox; | |
public class NougatFactory implements IFactory { | |
@Override |
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
package android_widget; | |
public interface IDialogueBox { | |
public void create(String data); | |
public void show(); | |
public void hide(); | |
} |
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
package lollipop_products; | |
import android_widget.IDialogueBox; | |
public class LollipopErrorDialogueBox implements IDialogueBox{ | |
@Override | |
public void create(String data) { | |
System.out.println("Lollipop info-dialogue showed "+ data); | |
} |
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
package lollipop_products; | |
import android_widget.IDialogueBox; | |
public class LollipopInfoDialogueBox implements IDialogueBox{ | |
@Override | |
public void create(String data) { | |
System.out.println("Lollipop error-dialogue showed "+ data); | |
} |
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
package nougat_products; | |
import android_widget.IDialogueBox; | |
public class NougatErrorDialogueBox implements IDialogueBox{ | |
@Override | |
public void create(String data) { | |
System.out.println("Lollipop info-dialogue showed "+ data); | |
} |
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
package nougat_products; | |
import android_widget.IDialogueBox; | |
public class NougatInfoDialogueBox implements IDialogueBox{ | |
@Override | |
public void create(String data) { | |
System.out.println("Lollipop info-dialogue showed "+ data); | |
} |