Created
January 7, 2012 16:23
-
-
Save phaniram/1575184 to your computer and use it in GitHub Desktop.
quora_fraud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interviewstreet; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
class order | |
{ | |
int Order_id ; | |
int Deal_id; | |
String Email; | |
String City; | |
String State; | |
int Zip; | |
int Credit_card; | |
public order(int order_id, int deal_id, String email, String city, | |
String state, int zip, int credit_card) { | |
super(); | |
Order_id = order_id; | |
Deal_id = deal_id; | |
Email = email; | |
City = city; | |
State = state; | |
Zip = zip; | |
Credit_card = credit_card; | |
} | |
} | |
public class Code_sprint { | |
ArrayList<order> al=new ArrayList<order>(); | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
Code_sprint cs=new Code_sprint(); | |
Scanner scanner = new Scanner(System.in); | |
int no_cases = scanner.nextInt(); | |
for (int i = 0; i < no_cases; i++) { | |
String to_proc = scanner.next(); | |
cs.solve(to_proc); | |
} | |
System.out.println(cs.process()); | |
} | |
private String process() { | |
return null; | |
} | |
private boolean check(order a,order b) | |
{ | |
return false; | |
} | |
private void solve(String to_proc) { | |
Scanner sc=new Scanner(to_proc).useDelimiter(","); | |
order od=new order(sc.nextInt(), sc.nextInt(), sc.next(), sc.next(), sc.next(), sc.nextInt(), sc.nextInt()); | |
al.add(od); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment