-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava.html
More file actions
187 lines (152 loc) · 7.39 KB
/
Copy pathjava.html
File metadata and controls
187 lines (152 loc) · 7.39 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html>
<head>
<link rel = "stylesheet" href = "java.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css">
</head>
<body>
<div class="container">
<div class="heading">
<h1> JAVA PROGRAMMING </h1>
<img src = "java.png" alt = "img">
</div>
<div class = "Collapse">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse1"><p>Unit-I</p></a>
</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<div class="panel-body"><p>Java is a programming language and a platform.
Java is a high level, robust, object-oriented and secure programming language.
</p>
<p>
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995.
James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already
a registered company, so James Gosling and his team changed the Oak name to Java.</p>
<strong><h2>Faculty material</h2></strong><br>
<a href="https://youtu.be/te5b6p0MUrw" target="_blank"><p>Videos</p></a><br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/te5b6p0MUrw" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>><br>
<a href="https://docs.google.com/document/d/1S2vh7WVLxoVhBVAEyFDYXdwX3aaG7WW0Z9lSW1Nvu6Q/edit?usp=drivesdk">Java programming</a><br><br>
<p><strong>Read more</strong></p>
<a href = "https://www.javatpoint.com/history-of-java" target = "_blank">JavaTPoint </a>
<div class = "abc">
<div class = "voting">
<button id = "likebtn">
<i class = "fa fa-thumbs-up"></i>
</button><h5>Upvote </h5>
<input type = "number" id = "input1" value = "0" name = "">
<button id = "dislikebtn">
<i class = "fa fa-thumbs-down"></i>
</button><h5>Downvote</h5>
<input type = "number" id = "input2" value = "0" name = "">
</div>
</div>
<br>
<script type = "text/javascript">
let likebtn = document.querySelector('#likebtn');
let dislikebtn = document.querySelector('#dislikebtn');
let input1 = document.querySelector('#input1');
let input2 = document.querySelector('#input2');
likebtn.addEventListener('click',()=>{
input1.value = parseInt(input1.value) + 1;
input1.style.color = "#12ff00";
})
dislikebtn.addEventListener('click',()=>{
input2.value = parseInt(input2.value) + 1;
input2.style.color = "#ff0000";
})
</script>
<a href = "https://www.geeksforgeeks.org/the-complete-history-of-java-programming-language/" target = "_blank">GeeksforGeeks</a>
<div class = "abc">
<div class = "voting">
<button id = "likebtn">
<i class = "fa fa-thumbs-up"></i>
</button><h5>Upvote </h5>
<input type = "number" id = "input3" value = "0" name = "">
<button id = "dislikebtn">
<i class = "fa fa-thumbs-down"></i>
</button><h5>Downvote</h5>
<input type = "number" id = "input4" value = "0" name = "">
</div>
</div>
<br>
<script type = "text/javascript">
let likebtn = document.querySelector('#likebtn');
let dislikebtn = document.querySelector('#dislikebtn');
let input1 = document.querySelector('#input3');
let input2 = document.querySelector('#input4');
likebtn.addEventListener('click',()=>{
input3.value = parseInt(input3.value) + 1;
input3.style.color = "#12ff00";
})
dislikebtn.addEventListener('click',()=>{
input4.value = parseInt(input4.value) + 1;
input4.style.color = "#ff0000";
})
</script>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse2"><p>Unit-II</p></a>
</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<div class="panel-body"><p>The Java if statement is used to test the condition. It checks boolean condition: true or false. There are various types of if statement in Java.</p>
<p>if statement</p>
<p> * if-else statement </p>
<p> * if-else-if ladder </p>
<p> * nested if statement </p>
<a href = "https://www.javatpoint.com/java-if-else" target = "_blank">Read more </a>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse3"><p>Unit-III</p></a>
</h4>
</div>
<div id="collapse3" class="panel-collapse collapse">
<div class="panel-body"><p>Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies software development and maintenance by providing some concepts:</p>
<p>Object</p>
<p>Class</p>
<p>Inheritance</p>
<p>Polymorphism</p>
<p>Abstraction</p>
<p>Encapsulation</p>
<a href = "https://www.javatpoint.com/java-oops-concepts" target = "_blank">Read more </a>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse4"><p>Unit-IV</p></a>
</h4>
</div>
<div id="collapse4" class="panel-collapse collapse">
<div class="panel-body"><p>Java array is an object which contains elements of a similar data type.
Additionally, The elements of an array are stored in a contiguous memory location.
It is a data structure where we store similar elements.
We can store only a fixed set of elements in a Java array.</p>
<a href = "https://www.javatpoint.com/array-in-java" target = "_blank">Read more </a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>