Question Index

Write a program to find the relationship between two persons using the FLAMES method.

Input (String, String) Output (String)
Praveen, Lakshmianusha F
Vamshikrishna, Sandhya L
Kirankumar, Gowthami A
Sharukkhan, Kajol M
Kiran, Samantha E
Praveen, Praveena S

class FindFLAMESRelation

{    public static void main(String s[])
        String firstName = "Kiran";
        String secondName = "Samantha";
        System.out.println("The relation between Kiran and Samantha is : " + findFlamesRelation(firstName, secondName));


public static String findFlamesRelation(String firstName, String secondName) {
//Write code here to get the relationship between two persons



Topic: StringBuilder Class In Java

Read this topic
Take test on this topic

Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App