Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Arrays;
  3. import java.util.Collections;
  4. import java.util.Scanner;
  5. import static java.lang.System.*;
  6. import java.io.*;
  7.  
  8. public class hoofball {
  9.  
  10. public static void main(String[] args)throws IOException{
  11.  
  12. Scanner scan = new Scanner(new File("hoofball.dat"));
  13. scan.nextLine();
  14. String[] placeHolder = scan.nextLine().split(" ");
  15. ArrayList<Integer> list = new ArrayList<Integer>();
  16. ArrayList<Boolean> list2 = new ArrayList<Boolean>();
  17. for(String x: placeHolder)
  18. list.add(Integer.parseInt(x));
  19. Collections.sort(list);
  20. for(int x: list)
  21. list2.add(false);
  22.  
  23.  
  24.  
  25.  
  26. }
  27.  
  28. public int left(ArrayList<Integer> list, ArrayList<Integer> list2){
  29.  
  30.  
  31.  
  32.  
  33. }
  34.  
  35. public int right(ArrayList<Integer> list, ArrayList<Integer> list2){
  36.  
  37. int count = 1;
  38.  
  39. for(int x=list.size()-1; x>=0; x--){
  40. int temp1 = list.get(x);
  41. int temp2 = list.get(x-1);
  42. int temp3 = list.get(x-2);
  43.  
  44.  
  45.  
  46.  
  47. }
  48.  
  49.  
  50. }
  51.  
  52. public static boolean done(ArrayList<Boolean> list2)
  53. {
  54. for(boolean x: list2)
  55. if(x == false)
  56. return false;
  57. return true;
  58.  
  59.  
  60. }
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement