import java.util.Scanner;
class ReverseWords
{
static void reverseWords(String str)
{
String[] arr = str.split("\\s");
for (int i = arr.length-1; i >= 0; i--)
{
System.out.print(arr[i] + " ");
}
}
public static void main(String[] args)
{
String str = "i like this program very much";
reverseWords(str);
}
}
class ReverseWords
{
static void reverseWords(String str)
{
String[] arr = str.split("\\s");
for (int i = arr.length-1; i >= 0; i--)
{
System.out.print(arr[i] + " ");
}
}
public static void main(String[] args)
{
String str = "i like this program very much";
reverseWords(str);
}
}
public class RemoveDuplicates {
public static void main(String[] args)
{
String str = "Sathya";
int l = str.length();
int k = 0;
char[] temp = new char[l];
boolean[] hit = new boolean[256];
for (int i = 0; i < l; i++) {
char ch = str.charAt(i);
if (!hit[ch]) {
hit[ch] = true;
temp[k++] = ch;
}
}
String res = new String(temp, 0, k);
System.out.println(res);
}
}
public static void main(String[] args)
{
String str = "Sathya";
int l = str.length();
int k = 0;
char[] temp = new char[l];
boolean[] hit = new boolean[256];
for (int i = 0; i < l; i++) {
char ch = str.charAt(i);
if (!hit[ch]) {
hit[ch] = true;
temp[k++] = ch;
}
}
String res = new String(temp, 0, k);
System.out.println(res);
}
}
//Write a java program accept date of birth from scanner and check eligible for vote ?
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter date of birth in format dd/mm/yyyy : ");
String dob = sc.nextLine();
String[] dobArray = dob.split("/");
int day = Integer.parseInt(dobArray[0]);
int month = Integer.parseInt(dobArray[1]);
int year = Integer.parseInt(dobArray[2]);
if(year < 1950)
{
System.out.println("You are not eligible for vote.");
}
else if(year == 1950 && month < 1)
{
System.out.println("You are not eligible for vote.");
}
else if(year == 1950 && month == 1 && day <18)
{
System.out.println("You are not eligible for vote.");
}
else
{
System.out.println("You are eligible for vote.");
}
}
}
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter date of birth in format dd/mm/yyyy : ");
String dob = sc.nextLine();
String[] dobArray = dob.split("/");
int day = Integer.parseInt(dobArray[0]);
int month = Integer.parseInt(dobArray[1]);
int year = Integer.parseInt(dobArray[2]);
if(year < 1950)
{
System.out.println("You are not eligible for vote.");
}
else if(year == 1950 && month < 1)
{
System.out.println("You are not eligible for vote.");
}
else if(year == 1950 && month == 1 && day <18)
{
System.out.println("You are not eligible for vote.");
}
else
{
System.out.println("You are eligible for vote.");
}
}
}
Sony is Hiring Machine learning Intern
Role - Machine learning Intern
Experience: Student/fresher
Salary - 40k - 50k per month
Passout year - 2024,2023 ,2022
Qualification: Btech/BE/Mtech/MCA
Location: Work from home
Apply now: https://www.linkedin.com/jobs/view/3352394311
Role - Machine learning Intern
Experience: Student/fresher
Salary - 40k - 50k per month
Passout year - 2024,2023 ,2022
Qualification: Btech/BE/Mtech/MCA
Location: Work from home
Apply now: https://www.linkedin.com/jobs/view/3352394311
Linkedin
Sony Research India hiring Machine Learning Intern in Mumbai, Maharashtra, India | LinkedIn
Posted 11:00:43 AM. The Sony R&D Centre is the research and development organization within Sony Group Corporation. Weβ¦See this and similar jobs on LinkedIn.