Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.datatransfer.DataFlavor;

public class Main {

    public static void main(String[] args) {

        DataFlavor df1 = new DataFlavor("text/plain; charset=ASCII", "Plain ASCII text");

        DataFlavor df2 = new DataFlavor(java.awt.Button.class, "AWT Button");

        System.out.println("df1 equals df2: " + df1.isMimeTypeEqual(df2));
    }
}