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
😊😊
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.stream.*;
public class EdM1 extends EdM{

//private static final Object e = null;

public EdM1(int empNo, String empName, String gender, int basicSal, String city, String deptName) {
super(empNo, empName, gender, basicSal, city, deptName);
}

@SuppressWarnings("unchecked")
public static void main(String[] args) {
List <EdM1> liste= new ArrayList<EdM1>();
liste.add(new EdM1(1001,"Kannababu","m",40000,"Hyderabad","EIE"));
liste.add(new EdM1(1002,"Srinivas","m",42000,"Chennai","CSE"));
liste.add(new EdM1(1003,"Yakub","m",45000,"Banglore","CSE"));
liste.add(new EdM1(1004,"Venktesh","m",55000,"Hyderabad","CSE"));
liste.add(new EdM1(1005,"Samantha","f",65000,"Chennai","ECE"));
liste.add(new EdM1(1006,"Anushka","f",43000,"Banglore","EIE"));
liste.add(new EdM1(1007,"Shekhar","m",23000,"Banglore","EIE"));
//Q1.)
float sum=0;
float da;
float hra;float tsal;
// for(EdM1 e:list) {
// System.out.println(e.empNo+","+e.empName+","+e.gender+","+e.basicSal+","+e.city+","+e.deptName);
// System.out.println(e.toString());
// //Q2.)
// if(e.basicSal>45000)
// System.out.println(e.toString());
// //Q3.)
// if (e.city.equalsIgnoreCase("Hyderabad"))
// System.out.println(e.toString());
// //Q4.)
// System.out.println(list.size());
// //Q5.)
// if(e.deptName.equalsIgnoreCase("CSE"))
// System.out.println(e.toString());
// //Q6.)
// if(e.basicSal>45000 && e.basicSal<60000)
// System.out.println(e.toString());
// //Q7.)
// if(e.gender.equalsIgnoreCase("m") || e.gender.equalsIgnoreCase("f"))
// System.out.println(e.toString());
// //Q8.)
// if (e.city.equalsIgnoreCase("Hyderabad")&& e.basicSal>40000)
// System.out.println(e.toString());
// //Q9.)
// if (e.city.equalsIgnoreCase("Banglore"))

// for(int i = 0;i<list.size();i++)
// sum+= list.get(i);
//
// System.out.println(sum);
// sum = sum+ e.basicSal;
// }
// System.out.println(sum);
// System.out.println(e.toString());
// //Q10.)
// if(e.deptName.equalsIgnoreCase("ECE"))
// System.out.println(e.toString());
// //Q11.)
// da=(float) (0.20+basicSal);
// hra=(float) (0.40+basicSal);
// tsal = da + hra + basicSal;
// System.out.println(e.toString()+tsal);
//Q12.)
// if(e.empName.equalsIgnoreCase("Samantha"))
// System.out.println(e.basicSal);
// }
Comparator com = (Object o1, Object o2)-> {
EdM e1 = (EdM)o1;
EdM e2 = (EdM)o2;
return e2.empName.compareTo(e1.empName);
};
Collections.sort(liste, com);
// for(EdM1 a : liste) {
// System.out.println(a.toString());
// }
liste.forEach(System.out::println);
//liste.stream().filter(a->a.basicSal > 45000).collect(Collectors.toList()).forEach(System.out::println);























}
}
import java.util.*;

public class EdM implements Comparable {
int empNo;
String empName;
String gender;
int basicSal;
String city;
String deptName;

public EdM(int empNo,String empName,String gender,int basicSal,String city,String deptName) {
this.empNo=empNo;
this.empName=empName;
this.gender=gender;
this.basicSal=basicSal;
this.city=city;
this.deptName=deptName;
}

@Override
public String toString() {
return "Employee [empno=" + empNo + ", empname=" + empName + ", gender=" + gender + ", bsal=" + basicSal + ", city="
+ city + ", deptname=" + deptName + "]";
}
// public float compareTo(EdM o) {
// if(this.basicSal == o.basicSal) {
// return 0;
// } else if (this.basicSal < o.basicSal) {
// return 1;
// }else {
// return -1;
// }
// }

@Override
public int compareTo(Object o) {
EdM e = (EdM)o;
// if(this.basicSal == e.basicSal) {
// return 0;
// }
// else if (this.basicSal<e.basicSal) {
// return 1;
// } else {
// return -1;
//
return e.basicSal - this.basicSal;
}
}
Computer Science fundamentals
Something beyond the job
Something beyond the qualification
Something you should notice

years of hardwork can be rewarded with you being fired in this dynamic age, & people are still looking for certainty in jobs & in their shell

Strange formula to remain Broke:

1. Start with schools - 15 L
2. Graduation - 5L
3. Post Graduation - 10 L

Salary starts at 3-5L p.a.

Now you work for next 10 years to not even break even

And then
House - 60L
Car - 10L
Luxuries -10L

Other expenses, are considered normal

Now you start paying another cycle for you & next generation for next 20 years

Next generation - Spend 50L to be capable of getting a job to start from ZERO

And we all work hard for it, isn't it?

The biggest cost people pay is not this debt, but to remain ignorant about it for entire life

Icing on the cake is we give same knowledge to our next generation to keep them broke

Your next generation pay for your fear of failure, self doubt & ignorance

Doing business is hard?

Really??

- Not in digital world
- Not as hard as getting broke hard way
- Not as hard as getting into financial uncertainties
- Not by taking all risks & be at mercy
- Not as hard as remaining in SISI zone

I would rather teach my next generation

- how to leverage knowledge digitally
- how to create business & wealth

How you choose to work hard?

By being broke or wealthy?

See 👇👇



#lifestyle #businesslifestyle #businessowner #motivation #skills
#inspiracion #businessleadership #leadership #leader #inspirational #motivationalquotes
👍1
Clicked n run less than a time click less than a fraction of second
Same question with 2 solutions with 0ms & 1 ms
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Every close bracket has a corresponding open bracket of the same type.complete it today by Eod