This file contains 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
// Idea about simple DCI (data, context, interaction) using Java 8. | |
// Approach will force mixins to Java using virtual default methods | |
// and dynamic proxy. To keep it short there is no context object | |
// like DCI dictates. | |
// | |
// Run using | |
// javac MixinsExample.java; java MixinsExample | |
// | |
// Panu Wetterstrand <panu.wetterstrand@iki.fi> |
This file contains 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.Arrays; | |
import java.util.Comparator; | |
public class Main { | |
public static void main(String[] args) { | |
String Name[][] = { | |
{"prakash", "kumar"}, | |
{"raj", "kappor"}, | |
{"vinod", "bhart"}, | |
{"yraj", "tkappor"}, |