Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }import java.util.*;
- import java.lang.*;
- import java.io.*;
- import java.awt.*;
- import java.awt.event.*;
- import static java.lang.System.*;
- public class memorize
- {
- public static void main(String args[]) throws IOException
- {
- Scanner kbin = new Scanner(System.in);
- System.out.print("file name? >> ");
- String filename = kbin.nextLine();
- int lines=0;
- Scanner scana = new Scanner(new File(filename.toString()));
- System.out.println();
- System.out.print("Reading "+filename+" ...");
- while(scana.hasNextLine()==true)
- {
- scana.nextLine();
- lines++;
- }
- Scanner scanb = new Scanner(new File(filename.toString()));
- /* in mem.txt, on the first line, the first integer is how to ask, where 0 = ask both, 1 = ask first, and 2 = ask second.
- the second integer is to check with typing in the answer or not, 1=true, 0=false. */
- int askhow = scanb.nextInt();
- int check = scanb.nextInt();
- scanb.nextLine();
- String[] ques = new String[lines-1];
- String[] ans = new String[lines-1];
- for(int fv1 = 0; fv1 < (lines-1)/2; fv1++)
- {
- ques[fv1] = scanb.nextLine();
- ans[fv1] = scanb.nextLine();
- }
- System.out.println("\n");
- long asknum = 0;
- long qoa = 0;
- String disp = "";
- String rans = "";
- String userans = "";
- for(;;)
- {
- asknum = Math.round(Math.random()*((lines-1)/2));
- if(askhow==0)
- {
- qoa = Math.round(Math.random());
- if(qoa==1)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- if(qoa==0)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- }
- if(askhow==1)
- {
- disp = ques[(int)asknum];
- rans = ans[(int)asknum];
- }
- if(askhow==2)
- {
- disp = ans[(int)asknum];
- rans = ques[(int)asknum];
- }
- System.out.print(disp+" >> ");
- userans = kbin.nextLine();
- if(check==1)
- {
- if(userans.hashCode()==rans.hashCode())
- {
- System.out.println ("correct...");
- } else {
- System.out.println ("wrong... actually "+rans);
- }IM RETARDAED
- } else {
- System.out.println ("answer is "+rans);
- }
- System.out.println ();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement