Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
public class LargestNumber {
public static void main(String[] args) {
int N = 139;
int D = 3;

int L = 0;

for (int i = N - 1; i >= 0; i--) {
String number = String.valueOf(i);
if (!number.contains(String.valueOf(D))) {
L = i;
break;
}
}

System.out.println("Largest number less than " + N +
" and not containing " + D + " is " + L);
}
}
👍1
public class BiggestNumber {

public static void main(String[] args) {

int a = 50, b = 20, c = 40;

if (a > b && a > c)
System.out.println("a is Biggest number");
else if (b > c)
System.out.println("b is Biggest number");
else
System.out.println("c is Biggest number");
}
}
public class DuplicateElementsInArray {
public static void main(String[] args) {
//Initialize array
int [] arr = new int [] {1, 2, 3, 4, 2, 7, 8, 8, 3};
System.out.println("Duplicate elements in given array: ");
//Searches for duplicate element
for(int i = 0; i < arr.length; i++) {
for(int j = i + 1; j < arr.length; j++) {
if(arr[i] == arr[j])
System.out.println(arr[j]);
}
}
}
}
Java Hyd Team
public class DuplicateElementsInArray { public static void main(String[] args) { //Initialize array int [] arr = new int [] {1, 2, 3, 4, 2, 7, 8, 8, 3}; System.out.println("Duplicate elements in given array: "); …
public class DuplicateFinder {
public static void main(String[] args) {
int[] arr = {1,2,3,4,5,3,4,7};
for (int i = 0; i < arr.length; i++) {
int element = arr[i];
boolean found = false;
for (int j = 0; j < i; j++) {
found = (arr[i] == arr[j]) ? true : false;
if (found) {
System.out.println("Duplicate element: " + element);
break;
}
}
}
}
}

Same question using ternary operator
Get ready with strings concepts , jsp.
Interface , abstract class
Conceptual knowledge on above topics and also exception handling
You can join here if you want any discussion or anything you want to ask 😊😊
👍1
Java Hyd Team
Get ready with strings concepts , jsp.
👆👆 strings , inheritance concepts only they asked today 😁😁
Tomorrow Sunday class react JS 9am
11 am spring boot
Soon we are going to open our tech window you can get access to immense of opportunities with this and bunch of freelance projects also 😊😊