Properties Of Relation (Cover Transitive, Reflective and Symmetric)
a. Embed Transitive, Reflective, and Symmetric rules into the java program.
b. Write a java program that read set of element and its relation. Your input data will be read from text file/console/GUI with the format below:
Input (Example): {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String line = new Scanner(System.in).nextLine();
}
}
Comments
Leave a comment