Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
faang
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CSE 391
24wi
faang
Commits
7e70b2bc
Commit
7e70b2bc
authored
1 year ago
by
Boshan Chen
Browse files
Options
Downloads
Patches
Plain Diff
2nd from boschen
parent
4c42a065
No related branches found
No related tags found
2 merge requests
!150
Main
,
!144
boschen
Pipeline
#577152
failed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Product.java
+39
-0
39 additions, 0 deletions
Product.java
with
39 additions
and
0 deletions
Product.java
0 → 100644
+
39
−
0
View file @
7e70b2bc
public
class
Product
{
public
String
name
;
public
String
description
;
public
String
picture
;
public
String
altText
;
public
double
price
;
public
Product
(
String
name
,
String
description
,
String
picture
,
String
altText
,
double
price
)
{
this
.
name
=
name
;
this
.
description
=
description
;
this
.
picture
=
picture
;
this
.
altText
=
altText
;
this
.
price
=
price
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
String
getAltText
()
{
return
this
.
altText
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
String
getPicture
()
{
return
this
.
picture
;
}
public
double
getPrice
()
{
return
this
.
price
;
}
public
String
toString
()
{
return
"Product"
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment