Commit f8b3251f authored by SAURABH GUPTA's avatar SAURABH GUPTA

Read Function added.

parent 0b3c68c8
......@@ -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,6 +40,7 @@ public class Main {
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Orders O1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment