Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS682-HW1-OrderMatching
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SAURABH GUPTA
CS682-HW1-OrderMatching
Commits
f8b3251f
Commit
f8b3251f
authored
Jan 20, 2018
by
SAURABH GUPTA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read Function added.
parent
0b3c68c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
src/orders/Main.java
src/orders/Main.java
+28
-1
No files found.
src/orders/Main.java
View file @
f8b3251f
...
...
@@ -3,10 +3,36 @@
*/
package
orders
;
import
java.util.Scanner
;
import
javax.swing.plaf.synth.SynthSpinnerUI
;
/**
* @author guptas
*
*/
class
Orders
{
String
ord_ID
;
String
type
;
String
product
;
String
pro_ID
;
int
price
;
int
qty
;
String
cust_ID
;
public
void
read
(
Orders
O
)
{
Scanner
s
=
new
Scanner
(
System
.
in
);
this
.
ord_ID
=
s
.
next
();
this
.
type
=
s
.
next
();
this
.
product
=
s
.
nextLine
();
this
.
pro_ID
=
s
.
nextLine
();
this
.
price
=
s
.
nextInt
();
this
.
qty
=
s
.
nextInt
();
this
.
cust_ID
=
s
.
nextLine
();
}
}
public
class
Main
{
/**
...
...
@@ -14,7 +40,8 @@ public class Main {
*/
public
static
void
main
(
String
[]
args
)
{
// TODO Auto-generated method stub
Orders
O1
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment