Cognizant Java Coding test | Cognizant Interview | Coding test | 6 + years #cognizant #java

preview_player
Показать описание
Cognizant Java Coding test | Cognizant Interview |6 + years #cognizant #java
Cognizant Interview Questions | UK Interview Experience | 6 + years
#jpmc #jpmorganchase #jpmorgan #interview #interviewquestions #java #javascript #javaprogramming #javatutorial #javaforbeginners #javascript_tutorial #faq #javainterviewquestion #javainterviewquestionsandanswers #javainterviewquestionsandanswersforfreshers #gcp #azure #devops
Congnizant interview processs varies for diffrent roles for Java , generally 2 to 4 rounds of interview
for UK roles coding is must and 3 or 2 rounds of technical interview.

Congizant,interview,faqs,questions,interview questions,updaets,java,jdk,spring,spring boot,development,coding test,technical test,maven,xml,reactjs,node js,google cloud,gcp,aws,block chain,azure,azure devops,devops,test,jpmorganchase,javainterviewquestionsandanswers,javainterviewquestion,javascript,javaprogramming,javatutorial,javascript_tutorial,java coding test,jpmc coding test,JP Morgan java coding,jp morgan technical test,coding,jp morgan coding test
Рекомендации по теме
Комментарии
Автор

Sir in a string array we have to do sorting please explain this program

SravanKumar-cypp
Автор

Hi Sir
Thanks a lot for this wonderful video.
I tried the same using arrays

public class FindAvgMark {



public static void main(String[] args) {



String[][] input = { { "Bob", "87" },

{ "Mike", "35" },

{ "Bob", "52" },

{ "Jason", "35" },

{ "Mike", "55" },

{ "Jessica", "99" },

{ "John", "20" }

};

System.out.println("Maximum Avg:: "+ findAvgMax(Integer.MIN_VALUE, Arrays.copyOf(input, input.length)));



}

private static int findAvgMax(int max, String[][] copyOfOriginalArray) {

for (int i = 0; i < copyOfOriginalArray.length; i++) {

String name = copyOfOriginalArray[i][0];

int totMark = 0, counter = 0, avg = 0;

if (!name.isEmpty()) {

for (int j = 0; j < copyOfOriginalArray.length; j++) {

if {

int mark =

totMark += mark;

copyOfOriginalArray[j][0] = copyOfOriginalArray[j][1] = "";

++counter;

}

}

avg = totMark / counter;

max = Math.max(max, avg);

}

}

return max;

}


}

jeckrazi
Автор

public static void main(String[] args) {
String[][] marks= {{"Joan", "34"}, {"James", "76"}};
int sum=0;
int c=0;
for(int i=0;i<marks.length;i++) {
c++;

}
int avg=sum/c;
System.out.println(avg);
}


This is far more easier than that right sir?

joanishmuthu