Forwarded from Aman Raj
Hi Aman
Iโve looked through your profile, and your experience in Java is quite impressive.
There are openings for multiple positions across India and I believe this opportunity will be an awesome upgrade for you!
Bhubaneshwar (3-8)
3-5 yrs :-https://career.infosys.com/jobdesc?jobReferenceCode=INFSYS-EXTERNAL-148254
5-8 yrs :-https://career.infosys.com/jobdesc?jobReferenceCode=INFSYS-EXTERNAL-148260
We are looking forward for your response.
Connect with me on LinkedIn for more updates and information
https://www.linkedin.com/in/prashanth-bharadwaj-45124516b/
Regards
Prashanth Bharadwaj
Prashanth Bharadwaj
Talent Acquisition Specialist at Infosys
Iโve looked through your profile, and your experience in Java is quite impressive.
There are openings for multiple positions across India and I believe this opportunity will be an awesome upgrade for you!
Bhubaneshwar (3-8)
3-5 yrs :-https://career.infosys.com/jobdesc?jobReferenceCode=INFSYS-EXTERNAL-148254
5-8 yrs :-https://career.infosys.com/jobdesc?jobReferenceCode=INFSYS-EXTERNAL-148260
We are looking forward for your response.
Connect with me on LinkedIn for more updates and information
https://www.linkedin.com/in/prashanth-bharadwaj-45124516b/
Regards
Prashanth Bharadwaj
Prashanth Bharadwaj
Talent Acquisition Specialist at Infosys
Message from srinivas sir so if you are all available do join the session and some projects ๐
// Wjp to count the no. of characters in given array I/P :- satgya O/P :- s= 1 a= 2 T = 1 h= 1 y=1
public class CountCharacter {
public static void main(String[] args) {
String str = "12345613245";
int count[] = new int[256];
int len = str.length();
for (int i = 0; i < len; i++)
count[str.charAt(i)]++;
char ch[] = new char[str.length()];
for (int i = 0; i < len; i++) {
ch[i] = str.charAt(i);
int find = 0;
for (int j = 0; j <= i; j++) {
// If any matches found
if (str.charAt(i) == ch[j])
find++;
}
if (find == 1)
System.out.println(str.charAt(i) + " =" + count[str.charAt(i)]);
}
}
}
public class CountCharacter {
public static void main(String[] args) {
String str = "12345613245";
int count[] = new int[256];
int len = str.length();
for (int i = 0; i < len; i++)
count[str.charAt(i)]++;
char ch[] = new char[str.length()];
for (int i = 0; i < len; i++) {
ch[i] = str.charAt(i);
int find = 0;
for (int j = 0; j <= i; j++) {
// If any matches found
if (str.charAt(i) == ch[j])
find++;
}
if (find == 1)
System.out.println(str.charAt(i) + " =" + count[str.charAt(i)]);
}
}
}
๐1
public class ReverseWordsInSentence {
public static void main(String[] args) {
String sentence = "which is the biggest continent";
String[] words = sentence.split(" ");
String reversedSentence = "";
for (int i = 0; i < words.length; i++) {
String word = words[i];
String reversedWord = "";
for (int j = word.length() - 1; j >= 0; j--) {
reversedWord = reversedWord + word.charAt(j);
}
reversedSentence = reversedSentence + reversedWord + " ";
}
System.out.println(reversedSentence);
}
}
public static void main(String[] args) {
String sentence = "which is the biggest continent";
String[] words = sentence.split(" ");
String reversedSentence = "";
for (int i = 0; i < words.length; i++) {
String word = words[i];
String reversedWord = "";
for (int j = word.length() - 1; j >= 0; j--) {
reversedWord = reversedWord + word.charAt(j);
}
reversedSentence = reversedSentence + reversedWord + " ";
}
System.out.println(reversedSentence);
}
}
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);
}
}
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 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");
}
}
Java Hyd Team
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โฆ
Can use ternary operator also that will be just one line code
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]);
}
}
}
}
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]);
}
}
}
}