package com.Aman;import java.util.regex.Pattern;public class Q1_A4 { // Java Program to reverse a String// without using inbuilt String function // Method to reverse words of a String static String reverseWords(String str) { // Specifying the pattern to be searched Pattern pattern = Pattern.compile("\\s"); // splitting String str with a pattern // (i.e )splitting the string whenever there // is whitespace and store in temp array. String[] temp = pattern.split(str); StringBuilder result = new StringBuilder(); // Iterate over the temp array and store // the string in reverse order. for (int i = 0; i < temp.length; i++) { if (i == temp.length - 1) result.insert(0, temp[i]); else result.insert(0, " " + temp[i]); } return result.toString(); } // Driver methods to test above method public static void main(String[] args) { String s1 = "There is a Cat"; System.out.println(reverseWords(s1)); String s2 = " Cat is there"; System.out.println(reverseWords(s2)); }}package com.Aman;public class Q1_A4_2 { public static void main(String ... args){ String s ="there is a cat"; char []ch = s.toCharArray(); String[]A=new String[4]; int index = 0; for(int i = 0; i<=ch.length-1;i++) if(ch[i]!=' '){ A[index]=A[index]+ch[i]; }else index++; //static char[] swap(String str, int i, int j) { // char[] ch = str.toCharArray(); //char temp = ch[i]; //ch[i] = ch[j]; //ch[j] = temp; //return ch; // } // public static void main(String[] args) { // String s = "aman"; //System.out.println(swap(s, 5, s.length() - 2)); // System.out.println(swap(s, 0, s.length() - 1)); //System.out.println(s); }}
Java Hyd Team
https://forms.gle/h4bqyzQtGqUk3LR6A FILL THIS FORM FOR TOMMORROWS MASTERCLASS TIMINGS 10AM-3PM WE WILL COVER EVERYTHING FROM SCRATCH TO ADVANCE LEVEL
I will update your calendar so please fill-out this form that will cover most things don't miss it
import java.util.List;
import java.util.stream.Collectors;
import static java.util.stream.DoubleStream.of;
public class Billions{
public static void main(String[] args) {
double a ,b ;
a= System.currentTimeMillis();
List<Double> list = of(1, 1000000000).boxed().collect(Collectors.toList());
list.forEach(System.out::println);
b=System.currentTimeMillis();
System.out.println(b-a);
}
}
import java.util.stream.Collectors;
import static java.util.stream.DoubleStream.of;
public class Billions{
public static void main(String[] args) {
double a ,b ;
a= System.currentTimeMillis();
List<Double> list = of(1, 1000000000).boxed().collect(Collectors.toList());
list.forEach(System.out::println);
b=System.currentTimeMillis();
System.out.println(b-a);
}
}
workplace WITH conflict is likely to succeed over a workplace WITHOUT conflict. Yes, you heard it right.
This is because a workplace WITHOUT conflict will have no diversity of opinion, no creativity, no new ideas, and hence no growth.
A workplace WITH conflict, on the other hand, will succeed, provided it has good conflict management.
I believe that instead of avoiding conflict, one should try to appropriately address and resolve it!
Here are some top-notch ways to manage conflict at workplaces:
1. A lot of conflicts arise out of misunderstandings, and can be prevented and resolved with clear and direct communication at every level. Be an active listener in order to prevent miscommunication.
2. Do not save the conflict resolution for later. The sooner you resolve it, the better. This is because unsolved conflict leads to bitter feelings of distrust, regret, and guilt.
3. There are a few things that would need to be ignored. Prioritize what you can and what you cannot ignore when it comes to conflict.
4. Sometimes, it is better to let others win. If you are engaging in an argument to win or to prove that the other person is wrong, the conflict will only increase, not reduce.
5. Resolve the conflict through face-to-face communication rather than e-mail or social media. Itβs effective because it allows you to read the room and observe the important non-verbal cues from the person and drive the conversation in a better direction.
6. If youβve done something wrong or inappropriate that might have contributed to the conflict, willingly or unwillingly, take accountability and apologize for your actions.
It might be impossible to eliminate workplace conflict altogether, but it is very much possible to resolve it efficiently.
Do you have a story about how you managed a conflict? Share your experience in the comments section.
This is because a workplace WITHOUT conflict will have no diversity of opinion, no creativity, no new ideas, and hence no growth.
A workplace WITH conflict, on the other hand, will succeed, provided it has good conflict management.
I believe that instead of avoiding conflict, one should try to appropriately address and resolve it!
Here are some top-notch ways to manage conflict at workplaces:
1. A lot of conflicts arise out of misunderstandings, and can be prevented and resolved with clear and direct communication at every level. Be an active listener in order to prevent miscommunication.
2. Do not save the conflict resolution for later. The sooner you resolve it, the better. This is because unsolved conflict leads to bitter feelings of distrust, regret, and guilt.
3. There are a few things that would need to be ignored. Prioritize what you can and what you cannot ignore when it comes to conflict.
4. Sometimes, it is better to let others win. If you are engaging in an argument to win or to prove that the other person is wrong, the conflict will only increase, not reduce.
5. Resolve the conflict through face-to-face communication rather than e-mail or social media. Itβs effective because it allows you to read the room and observe the important non-verbal cues from the person and drive the conversation in a better direction.
6. If youβve done something wrong or inappropriate that might have contributed to the conflict, willingly or unwillingly, take accountability and apologize for your actions.
It might be impossible to eliminate workplace conflict altogether, but it is very much possible to resolve it efficiently.
Do you have a story about how you managed a conflict? Share your experience in the comments section.
π1
public class Main {
public static void main(String[] args) {
String s1= "abc";
String s2 = new String("abc");
String s3= "abc";
System.out.println(Integer.toHexString(s1.hashCode()));
System.out.println(Integer.toHexString(s2.hashCode()));
System.out.println(Integer.toHexString(s3.hashCode()));
System.out.println(System.identityHashCode(s1));
System.out.println(System.identityHashCode(s2));
System.out.println(System.identityHashCode(s3));
}
}
public static void main(String[] args) {
String s1= "abc";
String s2 = new String("abc");
String s3= "abc";
System.out.println(Integer.toHexString(s1.hashCode()));
System.out.println(Integer.toHexString(s2.hashCode()));
System.out.println(Integer.toHexString(s3.hashCode()));
System.out.println(System.identityHashCode(s1));
System.out.println(System.identityHashCode(s2));
System.out.println(System.identityHashCode(s3));
}
}
Forwarded from SathyaReact
user name : admin
password : admin
database : my_database
collection : employees
connection url : mongodb+srv://admin:admin@sathyareact.y2kabtx.mongodb.net/?retryWrites=true&w=majority
password : admin
database : my_database
collection : employees
connection url : mongodb+srv://admin:admin@sathyareact.y2kabtx.mongodb.net/?retryWrites=true&w=majority
βΌοΈ Kreeti Hiring
π’ Passout year: 2022, 2021
π° CTC : 4.5 lpa
πApply Link : https://careers.kreeti.com/jobs/82-qa-enngineer
WATTSAPP :- https://chat.whatsapp.com/Enb12e0I9kP6ymo2PT1ewg
π’ Passout year: 2022, 2021
π° CTC : 4.5 lpa
πApply Link : https://careers.kreeti.com/jobs/82-qa-enngineer
WATTSAPP :- https://chat.whatsapp.com/Enb12e0I9kP6ymo2PT1ewg
Opening for two female candidates for Java backend developer ping us @stockkida ( SERVICE BASED US COMPANY ) Super exciting package n allowances
Many of you guy's sent resumes but your resume score is nearly 60-70% please make it 80% + then only resume will get shortlisted
π2