Skip to content

Commit 1507517

Browse files
committed
toast notification
1 parent 4f95856 commit 1507517

File tree

16 files changed

+189
-0
lines changed

16 files changed

+189
-0
lines changed

module1/experimentFour/.classpath

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-17.0.7.7-hotspot">
4+
<attributes>
5+
<attribute name="module" value="true"/>
6+
</attributes>
7+
</classpathentry>
8+
<classpathentry kind="src" path="src"/>
9+
<classpathentry kind="output" path="bin"/>
10+
</classpath>

module1/experimentFour/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>experimentFour</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=17
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13+
org.eclipse.jdt.core.compiler.release=enabled
14+
org.eclipse.jdt.core.compiler.source=17
3.34 KB
Binary file not shown.
153 Bytes
Binary file not shown.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
package experimentFour;
2+
3+
import java.util.ArrayList;
4+
import java.util.Collections;
5+
6+
public class expFour {
7+
int rno;
8+
String name;
9+
int age;
10+
float fees;
11+
12+
public expFour(int rno, String name, int age, float fees) {
13+
this.rno = rno;
14+
this.name = name;
15+
this.age = age;
16+
this.fees = fees;
17+
}
18+
@Override
19+
public String toString() {
20+
return rno + " " + name + " " + age + " " + fees;
21+
}
22+
23+
public static void main(String[] args) {
24+
// TODO Auto-generated method stub
25+
ArrayList<expFour> s = new ArrayList<expFour>();
26+
s.add(new expFour(101, "Vijay", 23, 5600));
27+
s.add(new expFour(102, "Ajay", 27, 7800));
28+
s.add(new expFour(103, "Jai", 21, 4500));
29+
System.out.println("Sorting on the basis of name...");
30+
31+
// implementing lambda expression
32+
Collections.sort(s,(s1,s2)->{return s1.name.compareTo(s2.name);});
33+
for(expFour l:s){
34+
System.out.println(l);
35+
}
36+
System.out.println("Sorting by age");
37+
38+
Collections.sort(s,(s1,s2)-> s1.age - s2.age);
39+
s.forEach((l)->System.out.println(l));
40+
41+
System.out.println("Sorting by Fees");
42+
43+
Collections.sort(s,(s1,s2)-> (int)s1.fees - (int)s2.fees);
44+
s.forEach((l)->System.out.println(l));
45+
}
46+
47+
}
48+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
*
3+
*/
4+
/**
5+
*
6+
*/
7+
module experimentFour {
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-17.0.7.7-hotspot">
4+
<attributes>
5+
<attribute name="module" value="true"/>
6+
</attributes>
7+
</classpathentry>
8+
<classpathentry kind="src" path="src"/>
9+
<classpathentry kind="lib" path="D:/Learnings/Java Full Stack College/mysql-connector-java-8.0.11.jar"/>
10+
<classpathentry kind="output" path="bin"/>
11+
</classpath>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>insert_data_into_database</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

0 commit comments

Comments
 (0)