Menu
Question Index
...

Write a program to get the topper of maths from given array

Input (String Array, Integer Array) Output (String)
{"Kavya", "Navya", "Divya", "Rajesh", "Vinod"},
{80, 76, 85, 92, 89}
"Rajesh"
{"Roopa", "Reena", "Raj", "Lucky"},
{97, 45, 77, 85}
"Roopa"
{"Madhuri", "Vinay", "Vijay", "Nilesh", "Radhika" },
{35, 88, 67, 99, 100}
"Radhika"
{"Krish", "Meena", "Jyothi"},
{78, 56, 45}
"Krish"
{"Harika", "Swetha", "Sneha", "Sukumar"},
{35, 66, 47, 39}
"Swetha"



class MathsTopper
{
    public static void main(String s[])
    {
        String names[] = {"Kavya", "Navya", "Divya", "Rajesh", "Vinod"};
        int mathsMarks[] = {80, 76, 85, 92, 89};
        System.out.println("The maths topper is " + getMathsTopper(names, mathsMarks));

    }


        public static String getMathsTopper(String names[], int mathsMarks[])
        {
        }

}

Doubts

Problems

Topic: Java String Arrays - String Arrays In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App