Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.text.*;
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
- public class Question
- {
- private int K;
- private int T;
- private int C;
- private String [] Answers;
- private String [] Questions;
- private int N;
- private int line,q;
- public String question;
- public Question( )
- {
- try {
- Scanner read = new Scanner(new File("candy.txt"));
- Scanner inScan = new Scanner(System.in);
- Answers = new String[N];
- for (q = 0; q < line ; q++)
- {
- if (q == line)
- {
- for (int i = 0; i < N+1; i++)
- {
- if (i == N+1)
- {
- K = Integer.parseInt(read.nextLine());
- }
- else
- {
- Answers[i] = read.nextLine();
- }
- }
- }
- else
- {
- question = read.nextLine();
- }
- }
- }
- catch (FileNotFoundException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement