FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
learn-java/src/classesObjects/classObject.java at master · muzammyl/learn-java · GitHub
muzammyl
/
learn-java
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
learn-java
/
src
/
classesObjects
/
classObject.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 592 Bytes
Breadcrumbs
learn-java
/
src
/
classesObjects
/
classObject.java
Copy path
File metadata and controls
23 lines (21 loc) · 592 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package
src
.
classesObjects
;
class
box
{
double
width
,
height
,
depth
;
}
class
boxDemo
{
public
static
void
main
(
String
[]
args
) {
box
b1
=
new
box
();
box
b2
=
new
box
();
double
volume
;
b1
.
width
=
10.5
;
b1
.
height
=
5.3
;
b1
.
depth
=
15.0
;
b2
.
width
=
2.8
;
b2
.
height
=
7.1
;
b2
.
depth
=
3.9
;
volume
=
b1
.
width
*
b1
.
height
*
b1
.
depth
;
System
.
out
.
println
(
"Volume of box1 is: "
+
volume
);
volume
=
b2
.
width
*
b2
.
height
*
b2
.
depth
;
System
.
out
.
println
(
"Volume of box2 is: "
+
volume
);
}
}
Back
|
FazBrowse Home
|
New Git URL