Core Java Programming Challenges #34 | Coding Challenges | Naresh IT

preview_player
Показать описание
Core Java Programming Challenges #34 | Coding Challenges | Naresh IT

💡 Also Watch

Java Programming Tutorials by Mr.Hari krishna:
Advanced Java Programming Tutorials by Mr.Nataraj:

Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.

💡 Visit Our Websites
#CoreJava_Programing #Challenges #CoreJava #Quiz
--------------------------

💡 About NareshIT:

"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations

--------------------------

💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.

--------------------------

💡 Please write back to us at

--------------------------

💡 Check The Below Links

Рекомендации по теме
Комментарии
Автор

your explanation is the answer in the challenge sir

package com.suseela.arrays;

class A{

int[] x= {10, 20, 30, 44, 55, 66};// first array

int[] y= {10, 20, 45, 77, 66};// second array

//method

public void RepeatedElements() {

for (int a : x) {

for (int b : y) {

//checking varible equal or not if it is equal then print

if(a==b) {

System.out.println(a+"-"+b);

}

}

}

}

}

//main class

public class Test {

//main method

public static void main(String[] args) {

A a=new A();

a.RepeatedElements();

}

}

aswarthanarayanareddyb
Автор

class Test
{
public static void main(String[] args)
{
int a[]= {10, 20, 30, 40, 50};
int b[]= {40, 10, 70, 90, 30};

for(int i:a)
for(int j:b)
if(i==j)
System.out.println(i);

}
}

sreedharkamera
Автор

public static void main(String[] args) {
int[] arr = {10, 20, 30, 40, 50};
int[] brr = {40, 10, 70, 90, 30};

for(int a:arr)
{
for(int b:brr)
{
if(a==b)
{

}
}
}

}

SunilKumarSunil
Автор

public class Main
{

public static void main(String[] args)
{
int arr[] = {12, 2, 9, 4, 3, 5, 8, 1};
int arr2[] = {120, 2, 9, 40, 31, 50, 8, 17};


for(int a:arr){
for(int b:arr2){
if(a==b){
System.out.println(a);
}

}
}

}
}

goniteliti
Автор

public static void main(String[] args) {
int[] arr1 = {10, 20, 30, 40, 50};
int[] arr2 = {40, 90, 23, 30, 10};

for (int i : arr1) {
for (int j : arr2) {
if(i == j) {

}
}

}

}

ksvijayan
Автор

public class Challenge34 {
public static void main(String[] args) {
int arr1[] = {10, 20, 30, 60, 70, 90};
int arr2[] = {10, 50, 60, 90};

for(int a1 : arr1 ){
for(int a2 : arr2){
if(a1==a2)
System.out.println(a1+", "+a2);
}
}
}
}

samahmahdi
Автор

import java.util.*;
public class Test{
public static void main(String [] args)
{
Scanner sc = new Scanner(System.in);
int arr1[] = {1, 2, 3, 4, 5, 6};
int arr2[] = {1, 2, 3, 9, 5, 7};

for(int i :arr1)
{
for(int j : arr2)
{
if(i==j)
System.out.println(i);
}
}


}

}

nishantraj
visit shbcf.ru