-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
39 lines (29 loc) · 859 Bytes
/
test.java
File metadata and controls
39 lines (29 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Last modified: 2023-05-08 */
package Sem2;
public class test {
public static void main(String[] args) {
// 1
String hi = "hello";
String mum = "world";
for (int x = 1; x < 10; x += 2) {
System.out.println(mum + hi);
if ((mum + hi).equals("helloworld")) {
hi = mum;
mum = hi;
} else {
hi = "mum";
mum = "hi";
}
}
// 2
double dellFHDmonitor = 69.13; double HPLaserJetPrinter = 420.21;
if(dellFHDmonitor>HPLaserJetPrinter) {
for (int owo = 0; owo < 13; owo += 13) {
System.out.println(("UwUntu the besst weabooOS"));
dellFHDmonitor = 13;HPLaserJetPrinter=31;
}
} else {
dellFHDmonitor = 420;HPLaserJetPrinter=69;
}
}
}