By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,300 Members | 1,867 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,300 IT Pros & Developers. It's quick & easy.

can you help me to display the winners in every position?

P: 1
Expand|Select|Wrap|Line Numbers
  1. import javax.swing.JOptionPane;
  2. import java.io.*;
  3. import java.util.Arrays;
  4.  
  5. public class election5
  6.  
  7.  public static void main( String[] args )
  8.  {
  9.  
  10.  
  11.  String[]nem= new String[10];
  12.  
  13.  int[] add= new int[10];
  14.  int i=0;
  15.  int[] ask= new int[10]; 
  16.  int vote=0;
  17.  int vote1_1=0;
  18.  int vote2_1=0;
  19.  int vote3_1=0;
  20.  int vote4_1=0; 
  21.  int vote5_1=0;
  22.  int vote6_1=0;
  23.  int vote7_1=0;
  24.  int vote8_1=0;
  25.  int vote9_1=0;
  26.  int vote10_1=0;
  27.  int vote11_1=0;
  28.  int vote12_1=0;
  29.  int vote13_1=0;
  30.  int vote14_1=0;
  31.  int vote15_1=0;
  32.  int vote16_1=0;
  33.  int vote17_1=0;
  34.  int vote18_1=0;
  35.  int vote19_1=0;
  36.  int vote20_1=0;
  37.  int vote21_1=0;
  38.  int vote22_1=0; 
  39.  int vote23_1=0;
  40.  int vote2=0;
  41.  int vote1_2=0;
  42.  int vote2_2=0;
  43.  int vote3_2=0;
  44.  int vote4_2=0; 
  45.  int vote5_2=0;
  46.  int vote6_2=0;
  47.  int vote7_2=0;
  48.  int vote8_2=0;
  49.  int vote9_2=0;
  50.  int vote10_2=0;
  51.  int vote11_2=0;
  52.  int vote12_2=0;
  53.  int vote13_2=0;
  54.  int vote14_2=0;
  55.  int vote15_2=0;
  56.  int vote16_2=0;
  57.  int vote17_2=0;
  58.  int vote18_2=0;
  59.  int vote19_2=0;
  60.  int vote20_2=0;
  61.  int vote21_2=0;
  62.  int vote22_2=0; 
  63.  int vote23_2=0;
  64. int vote3=0;
  65.  int vote1_3=0;
  66.  int vote2_3=0;
  67.  int vote3_3=0;
  68.  int vote4_3=0; 
  69.  int vote5_3=0;
  70.  int vote6_3=0;
  71.  int vote7_3=0;
  72.  int vote8_3=0;
  73.  int vote9_3=0;
  74.  int vote10_3=0;
  75.  int vote11_3=0;
  76.  int vote12_3=0;
  77.  int vote13_3=0;
  78.  int vote14_3=0;
  79.  int vote15_3=0;
  80.  int vote16_3=0;
  81.  int vote17_3=0;
  82.  int vote18_3=0;
  83.  int vote19_3=0;
  84.  int vote20_3=0;
  85.  int vote21_3=0;
  86.  int vote22_3=0; 
  87.  int vote23_3=0;
  88.  int vote4=0;
  89.  int vote1_4=0;
  90.  int vote2_4=0;
  91.  int vote3_4=0;
  92.  int vote4_4=0; 
  93.  int vote5_4=0;
  94.  int vote6_4=0;
  95.  int vote7_4=0;
  96.  int vote8_4=0;
  97.  int vote9_4=0;
  98.  int vote10_4=0;
  99.  int vote11_4=0;
  100.  int vote12_4=0;
  101.  int vote13_4=0;
  102.  int vote14_4=0;
  103.  int vote15_4=0;
  104.  int vote16_4=0;
  105.  int vote17_4=0;
  106.  int vote18_4=0;
  107.  int vote19_4=0;
  108.  int vote20_4=0;
  109.  int vote21_4=0;
  110.  int vote22_4=0; 
  111.  int vote23_4=0;
  112.  
  113.  int vote5=0;
  114.  int vote1_5=0;
  115.  int vote2_5=0;
  116.  int vote3_5=0;
  117.  int vote4_5=0; 
  118.  int vote5_5=0;
  119.  int vote6_5=0;
  120.  int vote7_5=0;
  121.  int vote8_5=0;
  122.  int vote9_5=0;
  123.  int vote10_5=0;
  124.  int vote11_5=0;
  125.  int vote12_5=0;
  126.  int vote13_5=0;
  127.  int vote14_5=0;
  128.  int vote15_5=0;
  129.  int vote16_5=0;
  130.  int vote17_5=0;
  131.  int vote18_5=0;
  132.  int vote19_5=0;
  133.  int vote20_5=0;
  134.  int vote21_5=0;
  135.  int vote22_5=0; 
  136.  int vote23_5=0;
  137.  
  138.  int vote6=0;
  139.  int vote1_6=0;
  140.  int vote2_6=0;
  141.  int vote3_6=0;
  142.  int vote4_6=0; 
  143.  int vote5_6=0;
  144.  int vote6_6=0;
  145.  int vote7_6=0;
  146.  int vote8_6=0;
  147.  int vote9_6=0;
  148.  int vote10_6=0;
  149.  int vote11_6=0;
  150.  int vote12_6=0;
  151.  int vote13_6=0;
  152.  int vote14_6=0;
  153.  int vote15_6=0;
  154.  int vote16_6=0;
  155.  int vote17_6=0;
  156.  int vote18_6=0;
  157.  int vote19_6=0;
  158.  int vote20_6=0;
  159.  int vote21_6=0;
  160.  int vote22_6=0; 
  161.  int vote23_6=0;
  162.  
  163.  int vote7=0;
  164.  int vote1_7=0;
  165.  int vote2_7=0;
  166.  int vote3_7=0;
  167.  int vote4_7=0; 
  168.  int vote5_7=0;
  169.  int vote6_7=0;
  170.  int vote7_7=0;
  171.  int vote8_7=0;
  172.  int vote9_7=0;
  173.  int vote10_7=0;
  174.  int vote11_7=0;
  175.  int vote12_7=0;
  176.  int vote13_7=0;
  177.  int vote14_7=0;
  178.  int vote15_7=0;
  179.  int vote16_7=0;
  180.  int vote17_7=0;
  181.  int vote18_7=0;
  182.  int vote19_7=0;
  183.  int vote20_7=0;
  184.  int vote21_7=0;
  185.  int vote22_7=0; 
  186.  int vote23_7=0;
  187.  
  188.  int vote8=0;
  189.  int vote1_8=0;
  190.  int vote2_8=0;
  191.  int vote3_8=0;
  192.  int vote4_8=0; 
  193.  int vote5_8=0;
  194.  int vote6_8=0;
  195.  int vote7_8=0;
  196.  int vote8_8=0;
  197.  int vote9_8=0;
  198.  int vote10_8=0;
  199.  int vote11_8=0;
  200.  int vote12_8=0;
  201.  int vote13_8=0;
  202.  int vote14_8=0;
  203.  int vote15_8=0;
  204.  int vote16_8=0;
  205.  int vote17_8=0;
  206.  int vote18_8=0;
  207.  int vote19_8=0;
  208.  int vote20_8=0;
  209.  int vote21_8=0;
  210.  int vote22_8=0; 
  211.  int vote23_8=0;
  212.  
  213.  int vote9=0;
  214.  int vote1_9=0;
  215.  int vote2_9=0;
  216.  int vote3_9=0;
  217.  int vote4_9=0; 
  218.  int vote5_9=0;
  219.  int vote6_9=0;
  220.  int vote7_9=0;
  221.  int vote8_9=0;
  222.  int vote9_9=0;
  223.  int vote10_9=0;
  224.  int vote11_9=0;
  225.  int vote12_9=0;
  226.  int vote13_9=0;
  227.  int vote14_9=0;
  228.  int vote15_9=0;
  229.  int vote16_9=0;
  230.  int vote17_9=0;
  231.  int vote18_9=0;
  232.  int vote19_9=0;
  233.  int vote20_9=0;
  234.  int vote21_9=0;
  235.  int vote22_9=0; 
  236.  int vote23_9=0;
  237.  
  238.  int vote10=0;
  239.  int vote1_10=0;
  240.  int vote2_10=0;
  241.  int vote3_10=0;
  242.  int vote4_10=0; 
  243.  int vote5_10=0;
  244.  int vote6_10=0;
  245.  int vote7_10=0;
  246.  int vote8_10=0;
  247.  int vote9_10=0;
  248.  int vote10_10=0;
  249.  int vote11_10=0;
  250.  int vote12_10=0;
  251.  int vote13_10=0;
  252.  int vote14_10=0;
  253.  int vote15_10=0;
  254.  int vote16_10=0;
  255.  int vote17_10=0;
  256.  int vote18_10=0;
  257.  int vote19_10=0;
  258.  int vote20_10=0;
  259.  int vote21_10=0;
  260.  int vote22_10=0; 
  261.  int vote23_10=0;
  262.  
  263.  
  264.  int ans;
  265.    int ans1=0;
  266.   String win1="";
  267.   String win2="";
  268.   String win3="";
  269.   String win4="";
  270.   String win5="";
  271.   int w;
  272. //  int ans=0;
  273.  
  274.  
  275.          System.out.println("");
  276.          System.out.println("");
  277.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  278.  
  279.         System.out.println("\t\t\t\tTagum City Election System\n\n");
  280.  
  281.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  282.  
  283.         System.out.println("POSITION          \tCODE          CANDIDATES\n\n");
  284.  
  285.  
  286.         System.out.println("Mayor:\t\t\t\t (1)        Fernandez\n");
  287.          System.out.println("\t\t\t    (2)        Lepiten\n\n");
  288.         System.out.println("Vice-Mayor:\t\t\t(1)        Obero");
  289.         System.out.println("\t\t        (2)        Nini\n\n");
  290.         System.out.println("Councilors:");
  291.         System.out.println("\t\t        (1)        Clemen");
  292.          System.out.println("\t\t        (2)        Larubes");
  293.         System.out.println("\t\t        (3)        Lee");
  294.         System.out.println("\t\t        (4)        Ped");
  295.         System.out.println("\t\t        (5)        Uy");
  296.         System.out.println("\t\t        (6)        Yu");
  297.         System.out.println("\t\t        (7)        Tiu");
  298.         System.out.println("\t\t        (8)        Yee    ");
  299.         System.out.println("\t\t        (9)        Han");
  300.         System.out.println("\t\t        (10)        Lim");
  301.         System.out.println("\t\t        (11)        Ramos");
  302.         System.out.println("\t\t        (12)        Lagare");
  303.         System.out.println("\t\t        (13)        Jabican");
  304.         System.out.println("\t\t        (14)        Hangad");
  305.         System.out.println("\t\t        (15)        Cruz");
  306.         System.out.println("\t\t        (16)        Tan");
  307.         System.out.println("\t\t        (17)        Peres");
  308.         System.out.println("\t\t        (18)        Sanchez");
  309.         System.out.println("\t\t        (19)        Reyes");
  310.          System.out.println("\t\t        (20)        Lopez");
  311.  
  312.  
  313.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  314.         System.out.println("\n    \t\tBARANGAYS IN TAGUM CITY  " );
  315.  
  316.         System.out.println("\n    Name of Barangay                         Code  " );
  317.  
  318.         System.out.println("\n    Barangay Apokon                                  1  " );
  319.         System.out.println("\n    Barangay Mankilam                         2  " );
  320.         System.out.println("\n    Barangay Magugpo North                            3  " );
  321.         System.out.println("\n    Barangay Magugpo South                            4  " );
  322.         System.out.println("\n    Barangay Madaum                                5  " );
  323.         System.out.println("\n    Barangay Visayan Village                     6  " );
  324.         System.out.println("\n    Barangay La Filipina                            7  " );
  325.         System.out.println("\n    Barangay Canocotan                            8  " );
  326.         System.out.println("\n    Barangay San Isidro                            9  " );
  327.         System.out.println("\n    Barangay Nueva Fuerza                           10  " );
  328.         System.out.println("\n\n같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  329.  
  330.  
  331.  
  332.            do{
  333.  
  334.         nem[i]=(JOptionPane.showInputDialog("Enter Your Name"));
  335.  
  336.          System.out.println("  ");
  337.         System.out.println("____________________________________");
  338.         System.out.println("\nVoter's Name:"+nem[i]);
  339.  
  340.         add[i]=Integer.parseInt(JOptionPane.showInputDialog("Address (choose among the specified barangay write the code only):"));
  341.  
  342.              {
  343.  
  344.     //switch in every barangay    
  345.     switch (add[i]){
  346.         case 1:
  347.                 System.out.println("Address: Barangay Apokon");
  348.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  349.            {
  350.  
  351.  
  352.              switch (ask[i]){
  353.              case 1:
  354.              System.out.println("____________________________________");
  355.              System.out.println("Mayor:            Fernandez");
  356.              vote++;
  357.  
  358.              break;
  359.              case 2:
  360.  
  361.              System.out.println("____________________________________");
  362.             System.out.println("Mayor:        Lepiten");
  363.              vote1_1++;
  364.              break;
  365.              default:
  366.              System.out.println("invalid number");
  367.          }            
  368.          }
  369.  
  370.  
  371.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  372.            {
  373.  
  374.  
  375.              switch (ask[i]){
  376.              case 1:
  377.  
  378.              System.out.println("Vice-Mayor:        Obero   ");
  379.              vote2_1++;
  380.              break;
  381.              case 2:
  382.  
  383.              System.out.println("Vice-Mayor:        Nini  ");
  384.              vote3_1++;
  385.              break;
  386.              default:
  387.              System.out.println("invalid number");
  388.              }            
  389.          }
  390.          int tem=10;
  391.  
  392.          System.out.println("\n\nCouncilors:"); 
  393.          for(int balik=0;balik<tem;balik++){
  394.  
  395.  
  396.      //for(w=0;w<10;w++){
  397.  
  398.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  399.  
  400.            {
  401.  
  402.  
  403.              switch (ask[i]){
  404.              case 1:
  405.  
  406.              System.out.println("\t\t\tClemen");
  407.              vote4_1++;
  408.              break;
  409.              case 2:
  410.  
  411.              System.out.println("\t\t\tLarubes");
  412.              vote5_1++;
  413.              break;
  414.  
  415.              case 3:
  416.              System.out.println("\t\t\tLee");
  417.              vote6_1++;
  418.              break;
  419.  
  420.              case 4:
  421.               System.out.println("\t\t\tPed");
  422.              vote7_1++;
  423.              break;
  424.  
  425.             case 5:
  426.  
  427.              System.out.println("\t\t\tUy");
  428.  
  429.              vote8_1++;
  430.              break;
  431.  
  432.              case 6:
  433.  
  434.              System.out.println("\t\t\tYu");
  435.  
  436.              vote9_1++;
  437.              break;
  438.  
  439.              case 7:
  440.  
  441.              System.out.println("\t\t\tTiu");
  442.  
  443.              vote10_1++;
  444.              break;
  445.  
  446.              case 8:
  447.  
  448.              System.out.println("\t\t\tYee");
  449.  
  450.              vote11_1++;
  451.              break;
  452.  
  453.              case 9:
  454.  
  455.              System.out.println("\t\t\tHan");
  456.  
  457.              vote12_1++;
  458.              break;
  459.  
  460.              case 10:
  461.  
  462.              System.out.println("\t\t\tLim");
  463.  
  464.              vote13_1++;
  465.              break;    
  466.  
  467.  
  468.              case 11:
  469.  
  470.              System.out.println("\t\t\tRamos");
  471.  
  472.              vote14_1++;
  473.              break;
  474.  
  475.              case 12:
  476.  
  477.              System.out.println("\t\t\tLagare");
  478.  
  479.              vote15_1++;
  480.              break;
  481.  
  482.  
  483.              case 13:
  484.  
  485.              System.out.println("\t\t\tJabican");
  486.  
  487.              vote16_1++;
  488.              break;    
  489.  
  490.              case 14:
  491.  
  492.              System.out.println("\t\t\tHangad");
  493.  
  494.              vote17_1++;
  495.              break;
  496.  
  497.  
  498.              case 15:
  499.  
  500.              System.out.println("\t\t\tCruz");
  501.  
  502.              vote18_1++;
  503.              break;
  504.  
  505.  
  506.              case 16:
  507.  
  508.              System.out.println("\t\t\tTan");
  509.  
  510.              vote19_1++;
  511.              break;
  512.  
  513.              case 17:
  514.  
  515.              System.out.println("\t\t\tPeres");
  516.  
  517.              vote20_1++;
  518.              break;
  519.  
  520.              case 18:
  521.  
  522.              System.out.println("\t\t\tSanchez");
  523.  
  524.              vote21_1++;
  525.              break;
  526.  
  527.              case 19:
  528.  
  529.              System.out.println("\t\t\tReyes");
  530.              System.out.println("");
  531.              vote22_1++;
  532.              break;
  533.  
  534.              case 20:
  535.  
  536.              System.out.println("\t\t\tLopez");
  537.              System.out.println("");
  538.              vote23_1++;
  539.              break;
  540.  
  541.  
  542.  
  543.              default:
  544.              System.out.println("invalid number");
  545.              }        //switch    
  546.  
  547.  
  548.  
  549.          }//ask for councilor
  550.  
  551.  
  552.  
  553.  ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  554.      switch(ans1)
  555.      {
  556.      case 2:
  557.      tem=0;
  558.      break;
  559.     }
  560.  
  561.          }//for
  562.  
  563.  
  564.  
  565.  
  566.             break;
  567.  
  568.         case 2://case para sa brgy. mankilam
  569.         System.out.println("Address: Barangay Mankilam");
  570.         ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  571.            {
  572.  
  573.  
  574.              switch (ask[i]){
  575.              case 1:
  576.              System.out.println("____________________________________");
  577.              System.out.println("Mayor:            Fernandez");
  578.              vote2++;
  579.  
  580.              break;
  581.              case 2:
  582.  
  583.              System.out.println("____________________________________");
  584.             System.out.println("Mayor:        Lepiten");
  585.              vote1_2++;
  586.              break;
  587.              default:
  588.              System.out.println("invalid number");
  589.          }            
  590.          }
  591.  
  592.  
  593.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  594.            {
  595.  
  596.  
  597.              switch (ask[i]){
  598.              case 1:
  599.  
  600.              System.out.println("Vice-Mayor:        Obero   ");
  601.              vote2_2++;
  602.              break;
  603.              case 2:
  604.  
  605.              System.out.println("Vice-Mayor:        Nini  ");
  606.              vote3_2++;
  607.              break;
  608.              default:
  609.              System.out.println("invalid number");
  610.              }            
  611.          }
  612.      //    int
  613.       tem=10;
  614.  
  615.          System.out.println("\n\nCouncilors:"); 
  616.          for(int balik=0;balik<tem;balik++){
  617.  
  618.  
  619.      //for(w=0;w<10;w++){
  620.  
  621.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  622.  
  623.            {
  624.  
  625.  
  626.              switch (ask[i]){
  627.              case 1:
  628.  
  629.              System.out.println("\t\t\tClemen");
  630.              vote4_2++;
  631.              break;
  632.              case 2:
  633.  
  634.              System.out.println("\t\t\tLarubes");
  635.              vote5_2++;
  636.              break;
  637.  
  638.              case 3:
  639.              System.out.println("\t\t\tLee");
  640.              vote6_2++;
  641.              break;
  642.  
  643.              case 4:
  644.               System.out.println("\t\t\tPed");
  645.              vote7_2++;
  646.              break;
  647.  
  648.             case 5:
  649.  
  650.              System.out.println("\t\t\tUy");
  651.  
  652.              vote8_2++;
  653.              break;
  654.  
  655.              case 6:
  656.  
  657.              System.out.println("\t\t\tYu");
  658.  
  659.              vote9_2++;
  660.              break;
  661.  
  662.              case 7:
  663.  
  664.              System.out.println("\t\t\tTiu");
  665.  
  666.              vote10_2++;
  667.              break;
  668.  
  669.              case 8:
  670.  
  671.              System.out.println("\t\t\tYee");
  672.  
  673.              vote11_2++;
  674.              break;
  675.  
  676.              case 9:
  677.  
  678.              System.out.println("\t\t\tHan");
  679.  
  680.              vote12_2++;
  681.              break;
  682.  
  683.              case 10:
  684.  
  685.              System.out.println("\t\t\tLim");
  686.  
  687.              vote13_2++;
  688.              break;    
  689.  
  690.  
  691.              case 11:
  692.  
  693.              System.out.println("\t\t\tRamos");
  694.  
  695.              vote14_2++;
  696.              break;
  697.  
  698.              case 12:
  699.  
  700.              System.out.println("\t\t\tLagare");
  701.  
  702.              vote15_2++;
  703.              break;
  704.  
  705.  
  706.              case 13:
  707.  
  708.              System.out.println("\t\t\tJabican");
  709.  
  710.              vote16_2++;
  711.              break;    
  712.  
  713.              case 14:
  714.  
  715.              System.out.println("\t\t\tHangad");
  716.  
  717.              vote17_2++;
  718.              break;
  719.  
  720.  
  721.              case 15:
  722.  
  723.              System.out.println("\t\t\tCruz");
  724.  
  725.              vote18_2++;
  726.              break;
  727.  
  728.  
  729.              case 16:
  730.  
  731.              System.out.println("\t\t\tTan");
  732.  
  733.              vote19_2++;
  734.              break;
  735.  
  736.              case 17:
  737.  
  738.              System.out.println("\t\t\tPeres");
  739.  
  740.              vote20_2++;
  741.              break;
  742.  
  743.              case 18:
  744.  
  745.              System.out.println("\t\t\tSanchez");
  746.  
  747.              vote21_2++;
  748.              break;
  749.  
  750.              case 19:
  751.  
  752.              System.out.println("\t\t\tReyes");
  753.              System.out.println("");
  754.              vote22_2++;
  755.              break;
  756.  
  757.              case 20:
  758.  
  759.              System.out.println("\t\t\tLopez");
  760.              System.out.println("");
  761.              vote23_2++;
  762.              break;
  763.  
  764.  
  765.  
  766.              default:
  767.              System.out.println("invalid number");
  768.              }        //switch    
  769.  
  770.  
  771.  
  772.          }//ask for councilor
  773.  
  774.  
  775.  
  776.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  777.      switch(ans1)
  778.      {
  779.      case 2:
  780.      tem=0;
  781.      break;
  782.     }
  783.  
  784.          }//for
  785.  
  786.  
  787.                 break;
  788.  
  789.  
  790.                 //case sa magugpo north
  791.  
  792.                 case 3:
  793.                 System.out.println("Address: Barangay Magugpo North");
  794.                 ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  795.            {
  796.  
  797.  
  798.              switch (ask[i]){
  799.              case 1:
  800.              System.out.println("____________________________________");
  801.              System.out.println("Mayor:            Fernandez");
  802.              vote3++;
  803.  
  804.              break;
  805.              case 2:
  806.  
  807.              System.out.println("____________________________________");
  808.             System.out.println("Mayor:        Lepiten");
  809.              vote1_3++;
  810.              break;
  811.              default:
  812.              System.out.println("invalid number");
  813.          }            
  814.          }
  815.  
  816.  
  817.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  818.            {
  819.  
  820.  
  821.              switch (ask[i]){
  822.              case 1:
  823.  
  824.              System.out.println("Vice-Mayor:        Obero   ");
  825.              vote2_3++;
  826.              break;
  827.              case 2:
  828.  
  829.              System.out.println("Vice-Mayor:        Nini  ");
  830.              vote3_3++;
  831.              break;
  832.              default:
  833.              System.out.println("invalid number");
  834.              }            
  835.          }
  836.      //    int
  837.       tem=10;
  838.  
  839.          System.out.println("\n\nCouncilors:"); 
  840.          for(int balik=0;balik<tem;balik++){
  841.  
  842.  
  843.      //for(w=0;w<10;w++){
  844.  
  845.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  846.  
  847.            {
  848.  
  849.  
  850.              switch (ask[i]){
  851.              case 1:
  852.  
  853.              System.out.println("\t\t\tClemen");
  854.              vote4_3++;
  855.              break;
  856.              case 2:
  857.  
  858.              System.out.println("\t\t\tLarubes");
  859.              vote5_3++;
  860.              break;
  861.  
  862.              case 3:
  863.              System.out.println("\t\t\tLee");
  864.              vote6_3++;
  865.              break;
  866.  
  867.              case 4:
  868.               System.out.println("\t\t\tPed");
  869.              vote7_3++;
  870.              break;
  871.  
  872.             case 5:
  873.  
  874.              System.out.println("\t\t\tUy");
  875.  
  876.              vote8_3++;
  877.              break;
  878.  
  879.              case 6:
  880.  
  881.              System.out.println("\t\t\tYu");
  882.  
  883.              vote9_3++;
  884.              break;
  885.  
  886.              case 7:
  887.  
  888.              System.out.println("\t\t\tTiu");
  889.  
  890.              vote10_3++;
  891.              break;
  892.  
  893.              case 8:
  894.  
  895.              System.out.println("\t\t\tYee");
  896.  
  897.              vote11_3++;
  898.              break;
  899.  
  900.              case 9:
  901.  
  902.              System.out.println("\t\t\tHan");
  903.  
  904.              vote12_3++;
  905.              break;
  906.  
  907.              case 10:
  908.  
  909.              System.out.println("\t\t\tLim");
  910.  
  911.              vote13_3++;
  912.              break;    
  913.  
  914.  
  915.              case 11:
  916.  
  917.              System.out.println("\t\t\tRamos");
  918.  
  919.              vote14_3++;
  920.              break;
  921.  
  922.              case 12:
  923.  
  924.              System.out.println("\t\t\tLagare");
  925.  
  926.              vote15_3++;
  927.              break;
  928.  
  929.  
  930.              case 13:
  931.  
  932.              System.out.println("\t\t\tJabican");
  933.  
  934.              vote16_3++;
  935.              break;    
  936.  
  937.              case 14:
  938.  
  939.              System.out.println("\t\t\tHangad");
  940.  
  941.              vote17_3++;
  942.              break;
  943.  
  944.  
  945.              case 15:
  946.  
  947.              System.out.println("\t\t\tCruz");
  948.  
  949.              vote18_3++;
  950.              break;
  951.  
  952.  
  953.              case 16:
  954.  
  955.              System.out.println("\t\t\tTan");
  956.  
  957.              vote19_3++;
  958.              break;
  959.  
  960.              case 17:
  961.  
  962.              System.out.println("\t\t\tPeres");
  963.  
  964.              vote20_3++;
  965.              break;
  966.  
  967.              case 18:
  968.  
  969.              System.out.println("\t\t\tSanchez");
  970.  
  971.              vote21_3++;
  972.              break;
  973.  
  974.              case 19:
  975.  
  976.              System.out.println("\t\t\tReyes");
  977.              System.out.println("");
  978.              vote22_3++;
  979.              break;
  980.  
  981.              case 20:
  982.  
  983.              System.out.println("\t\t\tLopez");
  984.              System.out.println("");
  985.              vote23_3++;
  986.              default:
  987.              System.out.println("invalid number");
  988.              }        //switch    
  989.  
  990.  
  991.  
  992.          }//ask for councilor
  993.  
  994.  
  995.  
  996.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  997.      switch(ans1)
  998.      {
  999.      case 2:
  1000.      tem=0;
  1001.      break;
  1002.     }
  1003.  
  1004.          }//for
  1005.  
  1006.  
  1007.                 break;
  1008.  
  1009.                 case 4:
  1010.                 System.out.println("Address: Barangay Magugpo South");
  1011.  
  1012.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  1013.            {
  1014.  
  1015.  
  1016.              switch (ask[i]){
  1017.              case 1:
  1018.              System.out.println("____________________________________");
  1019.              System.out.println("Mayor:            Fernandez");
  1020.              vote4++;
  1021.  
  1022.              break;
  1023.              case 2:
  1024.  
  1025.              System.out.println("____________________________________");
  1026.             System.out.println("Mayor:        Lepiten");
  1027.              vote1_4++;
  1028.              break;
  1029.              default:
  1030.              System.out.println("invalid number");
  1031.          }            
  1032.          }
  1033.  
  1034.  
  1035.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  1036.            {
  1037.  
  1038.  
  1039.              switch (ask[i]){
  1040.              case 1:
  1041.  
  1042.              System.out.println("Vice-Mayor:        Obero   ");
  1043.              vote2_4++;
  1044.              break;
  1045.              case 2:
  1046.  
  1047.              System.out.println("Vice-Mayor:        Nini  ");
  1048.              vote3_4++;
  1049.              break;
  1050.              default:
  1051.              System.out.println("invalid number");
  1052.              }            
  1053.          }
  1054.      //    int
  1055.       tem=10;
  1056.  
  1057.          System.out.println("\n\nCouncilors:"); 
  1058.          for(int balik=0;balik<tem;balik++){
  1059.  
  1060.  
  1061.      //for(w=0;w<10;w++){
  1062.  
  1063.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  1064.  
  1065.            {
  1066.  
  1067.  
  1068.              switch (ask[i]){
  1069.              case 1:
  1070.  
  1071.              System.out.println("\t\t\tClemen");
  1072.              vote4_4++;
  1073.              break;
  1074.              case 2:
  1075.  
  1076.              System.out.println("\t\t\tLarubes");
  1077.              vote5_4++;
  1078.              break;
  1079.  
  1080.              case 3:
  1081.              System.out.println("\t\t\tLee");
  1082.              vote6_4++;
  1083.              break;
  1084.  
  1085.              case 4:
  1086.               System.out.println("\t\t\tPed");
  1087.              vote7_4++;
  1088.              break;
  1089.  
  1090.             case 5:
  1091.  
  1092.              System.out.println("\t\t\tUy");
  1093.  
  1094.              vote8_4++;
  1095.              break;
  1096.  
  1097.              case 6:
  1098.  
  1099.              System.out.println("\t\t\tYu");
  1100.  
  1101.              vote9_4++;
  1102.              break;
  1103.  
  1104.              case 7:
  1105.  
  1106.              System.out.println("\t\t\tTiu");
  1107.  
  1108.              vote10_4++;
  1109.              break;
  1110.  
  1111.              case 8:
  1112.  
  1113.              System.out.println("\t\t\tYee");
  1114.  
  1115.              vote11_4++;
  1116.              break;
  1117.  
  1118.              case 9:
  1119.  
  1120.              System.out.println("\t\t\tHan");
  1121.  
  1122.              vote12_4++;
  1123.              break;
  1124.  
  1125.              case 10:
  1126.  
  1127.              System.out.println("\t\t\tLim");
  1128.  
  1129.              vote13_4++;
  1130.              break;    
  1131.  
  1132.  
  1133.              case 11:
  1134.  
  1135.              System.out.println("\t\t\tRamos");
  1136.  
  1137.              vote14_4++;
  1138.              break;
  1139.  
  1140.              case 12:
  1141.  
  1142.              System.out.println("\t\t\tLagare");
  1143.  
  1144.              vote15_4++;
  1145.              break;
  1146.  
  1147.  
  1148.              case 13:
  1149.  
  1150.              System.out.println("\t\t\tJabican");
  1151.  
  1152.              vote16_3++;
  1153.              break;    
  1154.  
  1155.              case 14:
  1156.  
  1157.              System.out.println("\t\t\tHangad");
  1158.  
  1159.              vote17_4++;
  1160.              break;
  1161.  
  1162.  
  1163.              case 15:
  1164.  
  1165.              System.out.println("\t\t\tCruz");
  1166.  
  1167.              vote18_4++;
  1168.              break;
  1169.  
  1170.  
  1171.              case 16:
  1172.  
  1173.              System.out.println("\t\t\tTan");
  1174.  
  1175.              vote19_4++;
  1176.              break;
  1177.  
  1178.              case 17:
  1179.  
  1180.              System.out.println("\t\t\tPeres");
  1181.  
  1182.              vote20_4++;
  1183.              break;
  1184.  
  1185.              case 18:
  1186.  
  1187.              System.out.println("\t\t\tSanchez");
  1188.  
  1189.              vote21_4++;
  1190.              break;
  1191.  
  1192.              case 19:
  1193.  
  1194.              System.out.println("\t\t\tReyes");
  1195.              System.out.println("");
  1196.              vote22_3++;
  1197.              break;
  1198.  
  1199.              case 20:
  1200.  
  1201.              System.out.println("\t\t\tLopez");
  1202.              System.out.println("");
  1203.              vote23_4++;
  1204.              default:
  1205.              System.out.println("invalid number");
  1206.              }        //switch    
  1207.  
  1208.  
  1209.  
  1210.          }//ask for councilor
  1211.  
  1212.  
  1213.  
  1214.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  1215.      switch(ans1)
  1216.      {
  1217.      case 2:
  1218.      tem=0;
  1219.      break;
  1220.     }
  1221.  
  1222.          }//for
  1223.  
  1224.  
  1225.                 break;
  1226.                 //para sa madaum
  1227.  
  1228.                 case 5:
  1229.                 System.out.println("Address: Barangay Madaum");
  1230.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  1231.            {
  1232.  
  1233.  
  1234.              switch (ask[i]){
  1235.              case 1:
  1236.              System.out.println("____________________________________");
  1237.              System.out.println("Mayor:            Fernandez");
  1238.              vote5++;
  1239.  
  1240.              break;
  1241.              case 2:
  1242.  
  1243.              System.out.println("____________________________________");
  1244.             System.out.println("Mayor:        Lepiten");
  1245.              vote1_5++;
  1246.              break;
  1247.              default:
  1248.              System.out.println("invalid number");
  1249.          }            
  1250.          }
  1251.  
  1252.  
  1253.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  1254.            {
  1255.  
  1256.  
  1257.              switch (ask[i]){
  1258.              case 1:
  1259.  
  1260.              System.out.println("Vice-Mayor:        Obero   ");
  1261.              vote2_5++;
  1262.              break;
  1263.              case 2:
  1264.  
  1265.              System.out.println("Vice-Mayor:        Nini  ");
  1266.              vote3_5++;
  1267.              break;
  1268.              default:
  1269.              System.out.println("invalid number");
  1270.              }            
  1271.          }
  1272.      //    int
  1273.       tem=10;
  1274.  
  1275.          System.out.println("\n\nCouncilors:"); 
  1276.          for(int balik=0;balik<tem;balik++){
  1277.  
  1278.  
  1279.      //for(w=0;w<10;w++){
  1280.  
  1281.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  1282.  
  1283.            {
  1284.  
  1285.  
  1286.              switch (ask[i]){
  1287.              case 1:
  1288.  
  1289.              System.out.println("\t\t\tClemen");
  1290.              vote4_5++;
  1291.              break;
  1292.              case 2:
  1293.  
  1294.              System.out.println("\t\t\tLarubes");
  1295.              vote5_5++;
  1296.              break;
  1297.  
  1298.              case 3:
  1299.              System.out.println("\t\t\tLee");
  1300.              vote6_5++;
  1301.              break;
  1302.  
  1303.              case 4:
  1304.               System.out.println("\t\t\tPed");
  1305.              vote7_5++;
  1306.              break;
  1307.  
  1308.             case 5:
  1309.  
  1310.              System.out.println("\t\t\tUy");
  1311.  
  1312.              vote8_3++;
  1313.              break;
  1314.  
  1315.              case 6:
  1316.  
  1317.              System.out.println("\t\t\tYu");
  1318.  
  1319.              vote9_5++;
  1320.              break;
  1321.  
  1322.              case 7:
  1323.  
  1324.              System.out.println("\t\t\tTiu");
  1325.  
  1326.              vote10_5++;
  1327.              break;
  1328.  
  1329.              case 8:
  1330.  
  1331.              System.out.println("\t\t\tYee");
  1332.  
  1333.              vote11_5++;
  1334.              break;
  1335.  
  1336.              case 9:
  1337.  
  1338.              System.out.println("\t\t\tHan");
  1339.  
  1340.              vote12_5++;
  1341.              break;
  1342.  
  1343.              case 10:
  1344.  
  1345.              System.out.println("\t\t\tLim");
  1346.  
  1347.              vote13_5++;
  1348.              break;    
  1349.  
  1350.  
  1351.              case 11:
  1352.  
  1353.              System.out.println("\t\t\tRamos");
  1354.  
  1355.              vote14_5++;
  1356.              break;
  1357.  
  1358.              case 12:
  1359.  
  1360.              System.out.println("\t\t\tLagare");
  1361.  
  1362.              vote15_5++;
  1363.              break;
  1364.  
  1365.  
  1366.              case 13:
  1367.  
  1368.              System.out.println("\t\t\tJabican");
  1369.  
  1370.              vote16_5++;
  1371.              break;    
  1372.  
  1373.              case 14:
  1374.  
  1375.              System.out.println("\t\t\tHangad");
  1376.  
  1377.              vote17_5++;
  1378.              break;
  1379.  
  1380.  
  1381.              case 15:
  1382.  
  1383.              System.out.println("\t\t\tCruz");
  1384.  
  1385.              vote18_5++;
  1386.              break;
  1387.  
  1388.  
  1389.              case 16:
  1390.  
  1391.              System.out.println("\t\t\tTan");
  1392.  
  1393.              vote19_5++;
  1394.              break;
  1395.  
  1396.              case 17:
  1397.  
  1398.              System.out.println("\t\t\tPeres");
  1399.  
  1400.              vote20_5++;
  1401.              break;
  1402.  
  1403.              case 18:
  1404.  
  1405.              System.out.println("\t\t\tSanchez");
  1406.  
  1407.              vote21_5++;
  1408.              break;
  1409.  
  1410.              case 19:
  1411.  
  1412.              System.out.println("\t\t\tReyes");
  1413.              System.out.println("");
  1414.              vote22_5++;
  1415.              break;
  1416.  
  1417.              case 20:
  1418.  
  1419.              System.out.println("\t\t\tLopez");
  1420.              System.out.println("");
  1421.              vote23_5++;
  1422.              default:
  1423.              System.out.println("invalid number");
  1424.              }        //switch    
  1425.  
  1426.  
  1427.  
  1428.          }//ask for councilor
  1429.  
  1430.  
  1431.  
  1432.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  1433.      switch(ans1)
  1434.      {
  1435.      case 2:
  1436.      tem=0;
  1437.      break;
  1438.     }
  1439.  
  1440.          }//for
  1441.  
  1442.     break;
  1443.                 //para sa visayan
  1444.  
  1445.     case 6:
  1446.                 System.out.println("Address: Barangay Visayan Village");
  1447.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  1448.            {
  1449.  
  1450.  
  1451.              switch (ask[i]){
  1452.              case 1:
  1453.              System.out.println("____________________________________");
  1454.              System.out.println("Mayor:            Fernandez");
  1455.              vote6++;
  1456.  
  1457.              break;
  1458.              case 2:
  1459.  
  1460.              System.out.println("____________________________________");
  1461.             System.out.println("Mayor:        Lepiten");
  1462.              vote1_6++;
  1463.              break;
  1464.              default:
  1465.              System.out.println("invalid number");
  1466.          }            
  1467.          }
  1468.  
  1469.  
  1470.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  1471.            {
  1472.  
  1473.  
  1474.              switch (ask[i]){
  1475.              case 1:
  1476.  
  1477.              System.out.println("Vice-Mayor:        Obero   ");
  1478.              vote2_6++;
  1479.              break;
  1480.              case 2:
  1481.  
  1482.              System.out.println("Vice-Mayor:        Nini  ");
  1483.              vote3_6++;
  1484.              break;
  1485.              default:
  1486.              System.out.println("invalid number");
  1487.              }            
  1488.          }
  1489.      //    int
  1490.       tem=10;
  1491.  
  1492.          System.out.println("\n\nCouncilors:"); 
  1493.          for(int balik=0;balik<tem;balik++){
  1494.  
  1495.  
  1496.      //for(w=0;w<10;w++){
  1497.  
  1498.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  1499.  
  1500.            {
  1501.  
  1502.  
  1503.              switch (ask[i]){
  1504.              case 1:
  1505.  
  1506.              System.out.println("\t\t\tClemen");
  1507.              vote4_6++;
  1508.              break;
  1509.              case 2:
  1510.  
  1511.              System.out.println("\t\t\tLarubes");
  1512.              vote5_6++;
  1513.              break;
  1514.  
  1515.              case 3:
  1516.              System.out.println("\t\t\tLee");
  1517.              vote6_6++;
  1518.              break;
  1519.  
  1520.              case 4:
  1521.               System.out.println("\t\t\tPed");
  1522.              vote7_6++;
  1523.              break;
  1524.  
  1525.             case 5:
  1526.  
  1527.              System.out.println("\t\t\tUy");
  1528.  
  1529.              vote8_6++;
  1530.              break;
  1531.  
  1532.              case 6:
  1533.  
  1534.              System.out.println("\t\t\tYu");
  1535.  
  1536.              vote9_6++;
  1537.              break;
  1538.  
  1539.              case 7:
  1540.  
  1541.              System.out.println("\t\t\tTiu");
  1542.  
  1543.              vote10_6++;
  1544.              break;
  1545.  
  1546.              case 8:
  1547.  
  1548.              System.out.println("\t\t\tYee");
  1549.  
  1550.              vote11_6++;
  1551.              break;
  1552.  
  1553.              case 9:
  1554.  
  1555.              System.out.println("\t\t\tHan");
  1556.  
  1557.              vote12_6++;
  1558.              break;
  1559.  
  1560.              case 10:
  1561.  
  1562.              System.out.println("\t\t\tLim");
  1563.  
  1564.              vote13_6++;
  1565.              break;    
  1566.  
  1567.  
  1568.              case 11:
  1569.  
  1570.              System.out.println("\t\t\tRamos");
  1571.  
  1572.              vote14_6++;
  1573.              break;
  1574.  
  1575.              case 12:
  1576.  
  1577.              System.out.println("\t\t\tLagare");
  1578.  
  1579.              vote15_6++;
  1580.              break;
  1581.  
  1582.  
  1583.              case 13:
  1584.  
  1585.              System.out.println("\t\t\tJabican");
  1586.  
  1587.              vote16_6++;
  1588.              break;    
  1589.  
  1590.              case 14:
  1591.  
  1592.              System.out.println("\t\t\tHangad");
  1593.  
  1594.              vote17_6++;
  1595.              break;
  1596.  
  1597.  
  1598.              case 15:
  1599.  
  1600.              System.out.println("\t\t\tCruz");
  1601.  
  1602.              vote18_6++;
  1603.              break;
  1604.  
  1605.  
  1606.              case 16:
  1607.  
  1608.              System.out.println("\t\t\tTan");
  1609.  
  1610.              vote19_6++;
  1611.              break;
  1612.  
  1613.              case 17:
  1614.  
  1615.              System.out.println("\t\t\tPeres");
  1616.  
  1617.              vote20_6++;
  1618.              break;
  1619.  
  1620.              case 18:
  1621.  
  1622.              System.out.println("\t\t\tSanchez");
  1623.  
  1624.              vote21_6++;
  1625.              break;
  1626.  
  1627.              case 19:
  1628.  
  1629.              System.out.println("\t\t\tReyes");
  1630.              System.out.println("");
  1631.              vote22_6++;
  1632.              break;
  1633.  
  1634.              case 20:
  1635.  
  1636.              System.out.println("\t\t\tLopez");
  1637.              System.out.println("");
  1638.              vote23_6++;
  1639.              default:
  1640.              System.out.println("invalid number");
  1641.              }        //switch    
  1642.  
  1643.  
  1644.  
  1645.          }//ask for councilor
  1646.  
  1647.  
  1648.  
  1649.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  1650.      switch(ans1)
  1651.      {
  1652.      case 2:
  1653.      tem=0;
  1654.      break;
  1655.     }
  1656.  
  1657.          }//for
  1658.  
  1659.  
  1660.     break;
  1661.  
  1662.  
  1663.     //            Barangay La Filipina
  1664.     case 7:
  1665.                 System.out.println("Address: Barangay La Filipina");
  1666.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  1667.            {
  1668.  
  1669.  
  1670.              switch (ask[i]){
  1671.              case 1:
  1672.              System.out.println("____________________________________");
  1673.              System.out.println("Mayor:            Fernandez");
  1674.              vote7++;
  1675.  
  1676.              break;
  1677.              case 2:
  1678.  
  1679.              System.out.println("____________________________________");
  1680.             System.out.println("Mayor:        Lepiten");
  1681.              vote1_7++;
  1682.              break;
  1683.              default:
  1684.              System.out.println("invalid number");
  1685.          }            
  1686.          }
  1687.  
  1688.  
  1689.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  1690.            {
  1691.  
  1692.  
  1693.              switch (ask[i]){
  1694.              case 1:
  1695.  
  1696.              System.out.println("Vice-Mayor:        Obero   ");
  1697.              vote2_7++;
  1698.              break;
  1699.              case 2:
  1700.  
  1701.              System.out.println("Vice-Mayor:        Nini  ");
  1702.              vote3_7++;
  1703.              break;
  1704.              default:
  1705.              System.out.println("invalid number");
  1706.              }            
  1707.          }
  1708.      //    int
  1709.       tem=10;
  1710.  
  1711.          System.out.println("\n\nCouncilors:"); 
  1712.          for(int balik=0;balik<tem;balik++){
  1713.  
  1714.  
  1715.      //for(w=0;w<10;w++){
  1716.  
  1717.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  1718.  
  1719.            {
  1720.  
  1721.  
  1722.              switch (ask[i]){
  1723.              case 1:
  1724.  
  1725.              System.out.println("\t\t\tClemen");
  1726.              vote4_7++;
  1727.              break;
  1728.              case 2:
  1729.  
  1730.              System.out.println("\t\t\tLarubes");
  1731.              vote5_7++;
  1732.              break;
  1733.  
  1734.              case 3:
  1735.              System.out.println("\t\t\tLee");
  1736.              vote6_7++;
  1737.              break;
  1738.  
  1739.              case 4:
  1740.               System.out.println("\t\t\tPed");
  1741.              vote7_7++;
  1742.              break;
  1743.  
  1744.             case 5:
  1745.  
  1746.              System.out.println("\t\t\tUy");
  1747.  
  1748.              vote8_7++;
  1749.              break;
  1750.  
  1751.              case 6:
  1752.  
  1753.              System.out.println("\t\t\tYu");
  1754.  
  1755.              vote9_7++;
  1756.              break;
  1757.  
  1758.              case 7:
  1759.  
  1760.              System.out.println("\t\t\tTiu");
  1761.  
  1762.              vote10_7++;
  1763.              break;
  1764.  
  1765.              case 8:
  1766.  
  1767.              System.out.println("\t\t\tYee");
  1768.  
  1769.              vote11_7++;
  1770.              break;
  1771.  
  1772.              case 9:
  1773.  
  1774.              System.out.println("\t\t\tHan");
  1775.  
  1776.              vote12_7++;
  1777.              break;
  1778.  
  1779.              case 10:
  1780.  
  1781.              System.out.println("\t\t\tLim");
  1782.  
  1783.              vote13_7++;
  1784.              break;    
  1785.  
  1786.  
  1787.              case 11:
  1788.  
  1789.              System.out.println("\t\t\tRamos");
  1790.  
  1791.              vote14_7++;
  1792.              break;
  1793.  
  1794.              case 12:
  1795.  
  1796.              System.out.println("\t\t\tLagare");
  1797.  
  1798.              vote15_7++;
  1799.              break;
  1800.  
  1801.  
  1802.              case 13:
  1803.  
  1804.              System.out.println("\t\t\tJabican");
  1805.  
  1806.              vote16_7++;
  1807.              break;    
  1808.  
  1809.              case 14:
  1810.  
  1811.              System.out.println("\t\t\tHangad");
  1812.  
  1813.              vote17_7++;
  1814.              break;
  1815.  
  1816.  
  1817.              case 15:
  1818.  
  1819.              System.out.println("\t\t\tCruz");
  1820.  
  1821.              vote18_7++;
  1822.              break;
  1823.  
  1824.  
  1825.              case 16:
  1826.  
  1827.              System.out.println("\t\t\tTan");
  1828.  
  1829.              vote19_7++;
  1830.              break;
  1831.  
  1832.              case 17:
  1833.  
  1834.              System.out.println("\t\t\tPeres");
  1835.  
  1836.              vote20_7++;
  1837.              break;
  1838.  
  1839.              case 18:
  1840.  
  1841.              System.out.println("\t\t\tSanchez");
  1842.  
  1843.              vote21_7++;
  1844.              break;
  1845.  
  1846.              case 19:
  1847.  
  1848.              System.out.println("\t\t\tReyes");
  1849.  
  1850.              vote22_7++;
  1851.              break;
  1852.  
  1853.              case 20:
  1854.  
  1855.              System.out.println("\t\t\tLopez");
  1856.  
  1857.              vote23_7++;
  1858.              default:
  1859.              System.out.println("invalid number");
  1860.              }        //switch    
  1861.  
  1862.  
  1863.  
  1864.          }//ask for councilor
  1865.  
  1866.  
  1867.  
  1868.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  1869.      switch(ans1)
  1870.      {
  1871.      case 2:
  1872.      tem=0;
  1873.      break;
  1874.     }
  1875.  
  1876.          }//for
  1877.  
  1878.  
  1879.     break;
  1880.  
  1881.     //Barangay Canocotan
  1882.  
  1883.     case 8:
  1884.                 System.out.println("Address: Barangay Canocotan");
  1885.  
  1886.  
  1887.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  1888.            {
  1889.  
  1890.  
  1891.              switch (ask[i]){
  1892.              case 1:
  1893.              System.out.println("____________________________________");
  1894.              System.out.println("Mayor:            Fernandez");
  1895.              vote8++;
  1896.  
  1897.              break;
  1898.              case 2:
  1899.  
  1900.              System.out.println("____________________________________");
  1901.             System.out.println("Mayor:        Lepiten");
  1902.              vote1_8++;
  1903.              break;
  1904.              default:
  1905.              System.out.println("invalid number");
  1906.          }            
  1907.          }
  1908.  
  1909.  
  1910.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  1911.            {
  1912.  
  1913.  
  1914.              switch (ask[i]){
  1915.              case 1:
  1916.  
  1917.              System.out.println("Vice-Mayor:        Obero   ");
  1918.              vote2_8++;
  1919.              break;
  1920.              case 2:
  1921.  
  1922.              System.out.println("Vice-Mayor:        Nini  ");
  1923.              vote3_8++;
  1924.              break;
  1925.              default:
  1926.              System.out.println("invalid number");
  1927.              }            
  1928.          }
  1929.      //    int
  1930.       tem=10;
  1931.  
  1932.          System.out.println("\n\nCouncilors:"); 
  1933.          for(int balik=0;balik<tem;balik++){
  1934.  
  1935.  
  1936.      //for(w=0;w<10;w++){
  1937.  
  1938.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  1939.  
  1940.            {
  1941.  
  1942.  
  1943.              switch (ask[i]){
  1944.              case 1:
  1945.  
  1946.              System.out.println("\t\t\tClemen");
  1947.              vote4_8++;
  1948.              break;
  1949.              case 2:
  1950.  
  1951.              System.out.println("\t\t\tLarubes");
  1952.              vote5_8++;
  1953.              break;
  1954.  
  1955.              case 3:
  1956.              System.out.println("\t\t\tLee");
  1957.              vote6_8++;
  1958.              break;
  1959.  
  1960.              case 4:
  1961.               System.out.println("\t\t\tPed");
  1962.              vote7_8++;
  1963.              break;
  1964.  
  1965.             case 5:
  1966.  
  1967.              System.out.println("\t\t\tUy");
  1968.  
  1969.              vote8_8++;
  1970.              break;
  1971.  
  1972.              case 6:
  1973.  
  1974.              System.out.println("\t\t\tYu");
  1975.  
  1976.              vote9_8++;
  1977.              break;
  1978.  
  1979.              case 7:
  1980.  
  1981.              System.out.println("\t\t\tTiu");
  1982.  
  1983.              vote10_8++;
  1984.              break;
  1985.  
  1986.              case 8:
  1987.  
  1988.              System.out.println("\t\t\tYee");
  1989.  
  1990.              vote11_8++;
  1991.              break;
  1992.  
  1993.              case 9:
  1994.  
  1995.              System.out.println("\t\t\tHan");
  1996.  
  1997.              vote12_8++;
  1998.              break;
  1999.  
  2000.              case 10:
  2001.  
  2002.              System.out.println("\t\t\tLim");
  2003.  
  2004.              vote13_8++;
  2005.              break;    
  2006.  
  2007.  
  2008.              case 11:
  2009.  
  2010.              System.out.println("\t\t\tRamos");
  2011.  
  2012.              vote14_8++;
  2013.              break;
  2014.  
  2015.              case 12:
  2016.  
  2017.              System.out.println("\t\t\tLagare");
  2018.  
  2019.              vote15_8++;
  2020.              break;
  2021.  
  2022.  
  2023.              case 13:
  2024.  
  2025.              System.out.println("\t\t\tJabican");
  2026.  
  2027.              vote16_8++;
  2028.              break;    
  2029.  
  2030.              case 14:
  2031.  
  2032.              System.out.println("\t\t\tHangad");
  2033.  
  2034.              vote17_8++;
  2035.              break;
  2036.  
  2037.  
  2038.              case 15:
  2039.  
  2040.              System.out.println("\t\t\tCruz");
  2041.  
  2042.              vote18_8++;
  2043.              break;
  2044.  
  2045.  
  2046.              case 16:
  2047.  
  2048.              System.out.println("\t\t\tTan");
  2049.  
  2050.              vote19_8++;
  2051.              break;
  2052.  
  2053.              case 17:
  2054.  
  2055.              System.out.println("\t\t\tPeres");
  2056.  
  2057.              vote20_8++;
  2058.              break;
  2059.  
  2060.              case 18:
  2061.  
  2062.              System.out.println("\t\t\tSanchez");
  2063.  
  2064.              vote21_8++;
  2065.              break;
  2066.  
  2067.              case 19:
  2068.  
  2069.              System.out.println("\t\t\tReyes");
  2070.              System.out.println("");
  2071.              vote22_8++;
  2072.              break;
  2073.  
  2074.              case 20:
  2075.  
  2076.              System.out.println("\t\t\tLopez");
  2077.              System.out.println("");
  2078.              vote23_8++;
  2079.              default:
  2080.              System.out.println("invalid number");
  2081.              }        //switch    
  2082.  
  2083.  
  2084.  
  2085.          }//ask for councilor
  2086.  
  2087.  
  2088.  
  2089.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  2090.      switch(ans1)
  2091.      {
  2092.      case 2:
  2093.      tem=0;
  2094.      break;
  2095.     }
  2096.  
  2097.          }//for
  2098.  
  2099.     break;
  2100.  
  2101.     //Barangay San Isidro
  2102.  
  2103.     case 9:
  2104.                 System.out.println("Address: Barangay San Isidro");
  2105.  
  2106.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  2107.            {
  2108.  
  2109.  
  2110.              switch (ask[i]){
  2111.              case 1:
  2112.              System.out.println("____________________________________");
  2113.              System.out.println("Mayor:            Fernandez");
  2114.              vote9++;
  2115.  
  2116.              break;
  2117.              case 2:
  2118.  
  2119.              System.out.println("____________________________________");
  2120.             System.out.println("Mayor:        Lepiten");
  2121.              vote1_9++;
  2122.              break;
  2123.              default:
  2124.              System.out.println("invalid number");
  2125.          }            
  2126.          }
  2127.  
  2128.  
  2129.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  2130.            {
  2131.  
  2132.  
  2133.              switch (ask[i]){
  2134.              case 1:
  2135.  
  2136.              System.out.println("Vice-Mayor:        Obero   ");
  2137.              vote2_9++;
  2138.              break;
  2139.              case 2:
  2140.  
  2141.              System.out.println("Vice-Mayor:        Nini  ");
  2142.              vote3_9++;
  2143.              break;
  2144.              default:
  2145.              System.out.println("invalid number");
  2146.              }            
  2147.          }
  2148.      //    int
  2149.       tem=10;
  2150.  
  2151.          System.out.println("\n\nCouncilors:"); 
  2152.          for(int balik=0;balik<tem;balik++){
  2153.  
  2154.  
  2155.      //for(w=0;w<10;w++){
  2156.  
  2157.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  2158.  
  2159.            {
  2160.  
  2161.  
  2162.              switch (ask[i]){
  2163.              case 1:
  2164.  
  2165.              System.out.println("\t\t\tClemen");
  2166.              vote4_9++;
  2167.              break;
  2168.              case 2:
  2169.  
  2170.              System.out.println("\t\t\tLarubes");
  2171.              vote5_9++;
  2172.              break;
  2173.  
  2174.              case 3:
  2175.              System.out.println("\t\t\tLee");
  2176.              vote6_9++;
  2177.              break;
  2178.  
  2179.              case 4:
  2180.               System.out.println("\t\t\tPed");
  2181.              vote7_9++;
  2182.              break;
  2183.  
  2184.             case 5:
  2185.  
  2186.              System.out.println("\t\t\tUy");
  2187.  
  2188.              vote8_9++;
  2189.              break;
  2190.  
  2191.              case 6:
  2192.  
  2193.              System.out.println("\t\t\tYu");
  2194.  
  2195.              vote9_9++;
  2196.              break;
  2197.  
  2198.              case 7:
  2199.  
  2200.              System.out.println("\t\t\tTiu");
  2201.  
  2202.              vote10_9++;
  2203.              break;
  2204.  
  2205.              case 8:
  2206.  
  2207.              System.out.println("\t\t\tYee");
  2208.  
  2209.              vote11_9++;
  2210.              break;
  2211.  
  2212.              case 9:
  2213.  
  2214.              System.out.println("\t\t\tHan");
  2215.  
  2216.              vote12_9++;
  2217.              break;
  2218.  
  2219.              case 10:
  2220.  
  2221.              System.out.println("\t\t\tLim");
  2222.  
  2223.              vote13_9++;
  2224.              break;    
  2225.  
  2226.  
  2227.              case 11:
  2228.  
  2229.              System.out.println("\t\t\tRamos");
  2230.  
  2231.              vote14_9++;
  2232.              break;
  2233.  
  2234.              case 12:
  2235.  
  2236.              System.out.println("\t\t\tLagare");
  2237.  
  2238.              vote15_9++;
  2239.              break;
  2240.  
  2241.  
  2242.              case 13:
  2243.  
  2244.              System.out.println("\t\t\tJabican");
  2245.  
  2246.              vote16_9++;
  2247.              break;    
  2248.  
  2249.              case 14:
  2250.  
  2251.              System.out.println("\t\t\tHangad");
  2252.  
  2253.              vote17_9++;
  2254.              break;
  2255.  
  2256.  
  2257.              case 15:
  2258.  
  2259.              System.out.println("\t\t\tCruz");
  2260.  
  2261.              vote18_9++;
  2262.              break;
  2263.  
  2264.  
  2265.              case 16:
  2266.  
  2267.              System.out.println("\t\t\tTan");
  2268.  
  2269.              vote19_9++;
  2270.              break;
  2271.  
  2272.              case 17:
  2273.  
  2274.              System.out.println("\t\t\tPeres");
  2275.  
  2276.              vote20_9++;
  2277.              break;
  2278.  
  2279.              case 18:
  2280.  
  2281.              System.out.println("\t\t\tSanchez");
  2282.  
  2283.              vote21_9++;
  2284.              break;
  2285.  
  2286.              case 19:
  2287.  
  2288.              System.out.println("\t\t\tReyes");
  2289.              System.out.println("");
  2290.              vote22_9++;
  2291.              break;
  2292.  
  2293.              case 20:
  2294.  
  2295.              System.out.println("\t\t\tLopez");
  2296.              System.out.println("");
  2297.              vote23_9++;
  2298.              default:
  2299.              System.out.println("invalid number");
  2300.              }        //switch    
  2301.  
  2302.  
  2303.  
  2304.          }//ask for councilor
  2305.  
  2306.  
  2307.  
  2308.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  2309.      switch(ans1)
  2310.      {
  2311.      case 2:
  2312.      tem=0;
  2313.      break;
  2314.     }
  2315.  
  2316.          }//for
  2317.  
  2318.     break;
  2319.  
  2320.  
  2321.     //        Nueva Fuerza    
  2322.     case 10:
  2323.                 System.out.println("Address: Barangay Nueva Fuerza");
  2324.  
  2325.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  2326.            {
  2327.  
  2328.  
  2329.              switch (ask[i]){
  2330.              case 1:
  2331.              System.out.println("____________________________________");
  2332.              System.out.println("Mayor:            Fernandez");
  2333.              vote10++;
  2334.  
  2335.              break;
  2336.              case 2:
  2337.  
  2338.              System.out.println("____________________________________");
  2339.             System.out.println("Mayor:        Lepiten");
  2340.              vote1_10++;
  2341.              break;
  2342.              default:
  2343.              System.out.println("invalid number");
  2344.          }            
  2345.          }
  2346.  
  2347.  
  2348.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  2349.            {
  2350.  
  2351.  
  2352.              switch (ask[i]){
  2353.              case 1:
  2354.  
  2355.              System.out.println("Vice-Mayor:        Obero   ");
  2356.              vote2_10++;
  2357.              break;
  2358.              case 2:
  2359.  
  2360.              System.out.println("Vice-Mayor:        Nini  ");
  2361.              vote3_10++;
  2362.              break;
  2363.              default:
  2364.              System.out.println("invalid number");
  2365.              }            
  2366.          }
  2367.      //    int
  2368.       tem=10;
  2369.  
  2370.          System.out.println("\n\nCouncilors:"); 
  2371.          for(int balik=0;balik<tem;balik++){
  2372.  
  2373.  
  2374.      //for(w=0;w<10;w++){
  2375.  
  2376.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  2377.  
  2378.            {
  2379.  
  2380.  
  2381.              switch (ask[i]){
  2382.              case 1:
  2383.  
  2384.              System.out.println("\t\t\tClemen");
  2385.              vote4_10++;
  2386.              break;
  2387.              case 2:
  2388.  
  2389.              System.out.println("\t\t\tLarubes");
  2390.              vote5_10++;
  2391.              break;
  2392.  
  2393.              case 3:
  2394.              System.out.println("\t\t\tLee");
  2395.              vote6_10++;
  2396.              break;
  2397.  
  2398.              case 4:
  2399.               System.out.println("\t\t\tPed");
  2400.              vote7_10++;
  2401.              break;
  2402.  
  2403.             case 5:
  2404.  
  2405.              System.out.println("\t\t\tUy");
  2406.  
  2407.              vote8_10++;
  2408.              break;
  2409.  
  2410.              case 6:
  2411.  
  2412.              System.out.println("\t\t\tYu");
  2413.  
  2414.              vote9_10++;
  2415.              break;
  2416.  
  2417.              case 7:
  2418.  
  2419.              System.out.println("\t\t\tTiu");
  2420.  
  2421.              vote10_10++;
  2422.              break;
  2423.  
  2424.              case 8:
  2425.  
  2426.              System.out.println("\t\t\tYee");
  2427.  
  2428.              vote11_10++;
  2429.              break;
  2430.  
  2431.              case 9:
  2432.  
  2433.              System.out.println("\t\t\tHan");
  2434.  
  2435.              vote12_10++;
  2436.              break;
  2437.  
  2438.              case 10:
  2439.  
  2440.              System.out.println("\t\t\tLim");
  2441.  
  2442.              vote13_10++;
  2443.              break;    
  2444.  
  2445.  
  2446.              case 11:
  2447.  
  2448.              System.out.println("\t\t\tRamos");
  2449.  
  2450.              vote14_10++;
  2451.              break;
  2452.  
  2453.              case 12:
  2454.  
  2455.              System.out.println("\t\t\tLagare");
  2456.  
  2457.              vote15_10++;
  2458.              break;
  2459.  
  2460.  
  2461.              case 13:
  2462.  
  2463.              System.out.println("\t\t\tJabican");
  2464.  
  2465.              vote16_10++;
  2466.              break;    
  2467.  
  2468.              case 14:
  2469.  
  2470.              System.out.println("\t\t\tHangad");
  2471.  
  2472.              vote17_10++;
  2473.              break;
  2474.  
  2475.  
  2476.              case 15:
  2477.  
  2478.              System.out.println("\t\t\tCruz");
  2479.  
  2480.              vote18_10++;
  2481.              break;
  2482.  
  2483.  
  2484.              case 16:
  2485.  
  2486.              System.out.println("\t\t\tTan");
  2487.  
  2488.              vote19_10++;
  2489.              break;
  2490.  
  2491.              case 17:
  2492.  
  2493.              System.out.println("\t\t\tPeres");
  2494.  
  2495.              vote20_10++;
  2496.              break;
  2497.  
  2498.              case 18:
  2499.  
  2500.              System.out.println("\t\t\tSanchez");
  2501.  
  2502.              vote21_10++;
  2503.              break;
  2504.  
  2505.              case 19:
  2506.  
  2507.              System.out.println("\t\t\tReyes");
  2508.              System.out.println("");
  2509.              vote22_10++;
  2510.              break;
  2511.  
  2512.              case 20:
  2513.  
  2514.              System.out.println("\t\t\tLopez");
  2515.              System.out.println("");
  2516.              vote23_10++;
  2517.              default:
  2518.              System.out.println("invalid number");
  2519.              }        //switch    
  2520.  
  2521.  
  2522.  
  2523.          }//ask for councilor
  2524.  
  2525.  
  2526.  
  2527.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  2528.      switch(ans1)
  2529.      {
  2530.      case 2:
  2531.      tem=0;
  2532.      break;
  2533.     }
  2534.  
  2535.          }//for
  2536.  
  2537.                 break;
  2538.  
  2539.  
  2540.                 default:
  2541.              System.out.println("invalid number");
  2542.             }
  2543.             }
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.      ans=Integer.parseInt(JOptionPane.showInputDialog("Enter another voter???  [1]-continue  [2]-exit"));
  2554.  
  2555.  
  2556.  
  2557.  
  2558.          }    
  2559.  
  2560.  
  2561.  while(ans==1);
  2562.  
  2563.  
  2564.          System.out.println("");
  2565.          System.out.println("");
  2566.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2567.            System.out.println("");
  2568.         System.out.println("");
  2569.         System.out.println("");        
  2570.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  2571.         System.out.println(" 같**********************************같");
  2572.         System.out.println(" 같    B R G Y.     A P O K O N 같");
  2573.         System.out.println(" 같**********************************같");
  2574.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  2575.         System.out.println("");    
  2576.         System.out.println("");    
  2577.         System.out.println("Position               Candidate       Votes Received  ");
  2578.         System.out.println("");        
  2579.          System.out.println("Mayor:                  Fernandez              "+vote);
  2580.          System.out.println("            Lepiten                 "+vote1_1);    
  2581.          System.out.println("");    
  2582.          System.out.println("Vice-Mayor:         Obero                  "+vote2_1);
  2583.          System.out.println("                Nini                 "+vote3_1);
  2584.          System.out.println("");
  2585.          System.out.println("Councilors:   ");
  2586.          System.out.println("\t\t    Clemen\t\t"+vote4_1);
  2587.          System.out.println("\t\t    Larubes\t\t"+vote5_1);
  2588.  
  2589.          System.out.println("\t\t    Lee\t\t"+vote6_1);
  2590.          System.out.println("\t\t    Ped\t\t"+vote7_1);
  2591.  
  2592.          System.out.println("\t\t    Uy\t\t"+vote8_1);
  2593.         System.out.println("\t\t    Yu\t\t"+vote9_1);
  2594.         System.out.println("\t\t    Tiu\t\t"+vote10_1);
  2595.         System.out.println("\t\t    Yee\t\t"+vote11_1);
  2596.         System.out.println("\t\t    Han\t\t"+vote12_1);
  2597.         System.out.println("\t\t    Lim\t\t"+vote13_1);
  2598.         System.out.println("\t\t    Ramos\t\t"+vote14_1);
  2599.         System.out.println("\t\t    Lagare\t\t"+vote15_1);
  2600.         System.out.println("\t\t    Jabican\t\t"+vote16_1);
  2601.         System.out.println("\t\t    Hangad\t\t"+vote17_1);
  2602.         System.out.println("\t\t    Cruz\t\t"+vote18_1);
  2603.         System.out.println("\t\t    Tan\t\t"+vote19_1);
  2604.         System.out.println("\t\t    Peres\t\t"+vote20_1);
  2605.         System.out.println("\t\t    Sanches\t\t"+vote21_1);
  2606.         System.out.println("\t\t    Reyes\t\t"+vote22_1);
  2607.         System.out.println("\t\t    Lopez\t\t"+vote23_1);
  2608.         System.out.println("");
  2609.  
  2610.         System.out.println("");
  2611.          System.out.println("");
  2612.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2613.            System.out.println("");
  2614.         System.out.println("");
  2615.         System.out.println("");        
  2616.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  2617.         System.out.println(" 같**********************************같");
  2618.         System.out.println(" 같    B R G Y.   M A N K I L A M    같");
  2619.         System.out.println(" 같**********************************같");
  2620.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  2621.         System.out.println("");    
  2622.         System.out.println("");    
  2623.         System.out.println("Position               Candidate       Votes Received  ");
  2624.         System.out.println("");        
  2625.          System.out.println("Mayor:                  Fernandez              "+vote2);
  2626.          System.out.println("            Lepiten                 "+vote1_2);    
  2627.          System.out.println("");    
  2628.          System.out.println("Vice-Mayor:         Obero                  "+vote2_2);
  2629.          System.out.println("                Nini                 "+vote3_2);
  2630.          System.out.println("");
  2631.          System.out.println("Councilors:   ");
  2632.          System.out.println("\t\t    Clemen\t\t"+vote4_2);
  2633.          System.out.println("\t\t    Larubes\t\t"+vote5_2);
  2634.  
  2635.          System.out.println("\t\t    Lee\t\t"+vote6_2);
  2636.          System.out.println("\t\t    Ped\t\t"+vote7_2);
  2637.  
  2638.          System.out.println("\t\t    Uy\t\t"+vote8_2);
  2639.         System.out.println("\t\t    Yu\t\t"+vote9_2);
  2640.         System.out.println("\t\t    Tiu\t\t"+vote10_2);
  2641.         System.out.println("\t\t    Yee\t\t"+vote11_2);
  2642.         System.out.println("\t\t    Han\t\t"+vote12_2);
  2643.         System.out.println("\t\t    Lim\t\t"+vote13_2);
  2644.         System.out.println("\t\t    Ramos\t\t"+vote14_2);
  2645.         System.out.println("\t\t    Lagare\t\t"+vote15_2);
  2646.         System.out.println("\t\t    Jabican\t\t"+vote16_2);
  2647.         System.out.println("\t\t    Hangad\t\t"+vote17_2);
  2648.         System.out.println("\t\t    Cruz\t\t"+vote18_2);
  2649.         System.out.println("\t\t    Tan\t\t"+vote19_2);
  2650.         System.out.println("\t\t    Peres\t\t"+vote20_2);
  2651.         System.out.println("\t\t    Sanches\t\t"+vote21_2);
  2652.         System.out.println("\t\t    Reyes\t\t"+vote22_2);
  2653.         System.out.println("\t\t    Lopez\t\t"+vote23_2);
  2654.         System.out.println("");
  2655.  
  2656.         System.out.println("");
  2657.          System.out.println("");
  2658.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2659.            System.out.println("");
  2660.         System.out.println("");
  2661.         System.out.println("");        
  2662.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  2663.         System.out.println(" 같**********************************************같");
  2664.         System.out.println(" 같    B R G Y.    M A G U G P O  N O R T H 같");
  2665.         System.out.println(" 같**********************************************같");
  2666.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  2667.         System.out.println("");    
  2668.         System.out.println("");    
  2669.         System.out.println("Position               Candidate       Votes Received  ");
  2670.         System.out.println("");        
  2671.          System.out.println("Mayor:                  Fernandez              "+vote3);
  2672.          System.out.println("            Lepiten                 "+vote1_3);    
  2673.          System.out.println("");    
  2674.          System.out.println("Vice-Mayor:         Obero                  "+vote2_3);
  2675.          System.out.println("                Nini                 "+vote3_3);
  2676.          System.out.println("");
  2677.          System.out.println("Councilors:   ");
  2678.          System.out.println("\t\t    Clemen\t\t"+vote4_3);
  2679.          System.out.println("\t\t    Larubes\t\t"+vote5_3);
  2680.  
  2681.          System.out.println("\t\t    Lee\t\t"+vote6_3);
  2682.          System.out.println("\t\t    Ped\t\t"+vote7_3);
  2683.  
  2684.          System.out.println("\t\t    Uy\t\t"+vote8_3);
  2685.         System.out.println("\t\t    Yu\t\t"+vote9_3);
  2686.         System.out.println("\t\t    Tiu\t\t"+vote10_3);
  2687.         System.out.println("\t\t    Yee\t\t"+vote11_3);
  2688.         System.out.println("\t\t    Han\t\t"+vote12_3);
  2689.         System.out.println("\t\t    Lim\t\t"+vote13_3);
  2690.         System.out.println("\t\t    Ramos\t\t"+vote14_3);
  2691.         System.out.println("\t\t    Lagare\t\t"+vote15_3);
  2692.         System.out.println("\t\t    Jabican\t\t"+vote16_3);
  2693.         System.out.println("\t\t    Hangad\t\t"+vote17_3);
  2694.         System.out.println("\t\t    Cruz\t\t"+vote18_3);
  2695.         System.out.println("\t\t    Tan\t\t"+vote19_3);
  2696.         System.out.println("\t\t    Peres\t\t"+vote20_3);
  2697.         System.out.println("\t\t    Sanches\t\t"+vote21_3);
  2698.         System.out.println("\t\t    Reyes\t\t"+vote22_3);
  2699.         System.out.println("\t\t    Lopez\t\t"+vote23_3);
  2700.         System.out.println("");
  2701.  
  2702.             System.out.println("");
  2703.          System.out.println("");
  2704.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2705.            System.out.println("");
  2706.         System.out.println("");
  2707.         System.out.println("");        
  2708.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  2709.         System.out.println(" 같**********************************************같");
  2710.         System.out.println(" 같    B R G Y.    M A G U G P O  S O U T H  같");
  2711.         System.out.println(" 같**********************************************같");
  2712.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  2713.         System.out.println("");    
  2714.         System.out.println("");    
  2715.         System.out.println("Position               Candidate       Votes Received  ");
  2716.         System.out.println("");        
  2717.          System.out.println("Mayor:                  Fernandez              "+vote4);
  2718.          System.out.println("            Lepiten                 "+vote1_4);    
  2719.          System.out.println("");    
  2720.          System.out.println("Vice-Mayor:         Obero                  "+vote2_4);
  2721.          System.out.println("                Nini                 "+vote3_4);
  2722.          System.out.println("");
  2723.          System.out.println("Councilors:   ");
  2724.          System.out.println("\t\t    Clemen\t\t"+vote4_4);
  2725.          System.out.println("\t\t    Larubes\t\t"+vote5_4);
  2726.  
  2727.          System.out.println("\t\t    Lee\t\t"+vote6_4);
  2728.          System.out.println("\t\t    Ped\t\t"+vote7_4);
  2729.  
  2730.          System.out.println("\t\t    Uy\t\t"+vote8_4);
  2731.         System.out.println("\t\t    Yu\t\t"+vote9_4);
  2732.         System.out.println("\t\t    Tiu\t\t"+vote10_4);
  2733.         System.out.println("\t\t    Yee\t\t"+vote11_4);
  2734.         System.out.println("\t\t    Han\t\t"+vote12_4);
  2735.         System.out.println("\t\t    Lim\t\t"+vote13_4);
  2736.         System.out.println("\t\t    Ramos\t\t"+vote14_4);
  2737.         System.out.println("\t\t    Lagare\t\t"+vote15_4);
  2738.         System.out.println("\t\t    Jabican\t\t"+vote16_4);
  2739.         System.out.println("\t\t    Hangad\t\t"+vote17_4);
  2740.         System.out.println("\t\t    Cruz\t\t"+vote18_4);
  2741.         System.out.println("\t\t    Tan\t\t"+vote19_4);
  2742.         System.out.println("\t\t    Peres\t\t"+vote20_4);
  2743.         System.out.println("\t\t    Sanches\t\t"+vote21_4);
  2744.         System.out.println("\t\t    Reyes\t\t"+vote22_4);
  2745.         System.out.println("\t\t    Lopez\t\t"+vote23_4);
  2746.         System.out.println("");
  2747.  
  2748.  
  2749.  
  2750.             System.out.println("");
  2751.          System.out.println("");
  2752.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2753.            System.out.println("");
  2754.         System.out.println("");
  2755.         System.out.println("");        
  2756.         System.out.println(" 같같같같같같같같같같같같같같         " );
  2757.         System.out.println(" 같*************************같");
  2758.         System.out.println(" 같    B R G Y.    M A D A U M 같");
  2759.         System.out.println(" 같*************************같");
  2760.         System.out.println(" 같같같같같같같같같같같같같같               ");
  2761.         System.out.println("");    
  2762.         System.out.println("");    
  2763.         System.out.println("Position               Candidate       Votes Received  ");
  2764.         System.out.println("");        
  2765.          System.out.println("Mayor:                  Fernandez              "+vote5);
  2766.          System.out.println("            Lepiten                 "+vote1_5);    
  2767.          System.out.println("");    
  2768.          System.out.println("Vice-Mayor:         Obero                  "+vote2_5);
  2769.          System.out.println("                Nini                 "+vote3_5);
  2770.          System.out.println("");
  2771.          System.out.println("Councilors:   ");
  2772.          System.out.println("\t\t    Clemen\t\t"+vote4_5);
  2773.          System.out.println("\t\t    Larubes\t\t"+vote5_5);
  2774.  
  2775.          System.out.println("\t\t    Lee\t\t"+vote6_5);
  2776.          System.out.println("\t\t    Ped\t\t"+vote7_5);
  2777.  
  2778.          System.out.println("\t\t    Uy\t\t"+vote8_5);
  2779.         System.out.println("\t\t    Yu\t\t"+vote9_5);
  2780.         System.out.println("\t\t    Tiu\t\t"+vote10_5);
  2781.         System.out.println("\t\t    Yee\t\t"+vote11_5);
  2782.         System.out.println("\t\t    Han\t\t"+vote12_5);
  2783.         System.out.println("\t\t    Lim\t\t"+vote13_5);
  2784.         System.out.println("\t\t    Ramos\t\t"+vote14_5);
  2785.         System.out.println("\t\t    Lagare\t\t"+vote15_5);
  2786.         System.out.println("\t\t    Jabican\t\t"+vote16_5);
  2787.         System.out.println("\t\t    Hangad\t\t"+vote17_5);
  2788.         System.out.println("\t\t    Cruz\t\t"+vote18_5);
  2789.         System.out.println("\t\t    Tan\t\t"+vote19_5);
  2790.         System.out.println("\t\t    Peres\t\t"+vote20_5);
  2791.         System.out.println("\t\t    Sanches\t\t"+vote21_5);
  2792.         System.out.println("\t\t    Reyes\t\t"+vote22_5);
  2793.         System.out.println("\t\t    Lopez\t\t"+vote23_5);
  2794.         System.out.println("");
  2795.  
  2796.  
  2797.             System.out.println("");
  2798.          System.out.println("");
  2799.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2800.            System.out.println("");
  2801.         System.out.println("");
  2802.         System.out.println("");        
  2803.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  2804.         System.out.println(" 같**********************************************같");
  2805.         System.out.println(" 같    B R G Y.    V I S A Y A N  V I L L A G E 같");
  2806.         System.out.println(" 같**********************************************같");
  2807.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  2808.         System.out.println("");    
  2809.         System.out.println("");    
  2810.         System.out.println("Position               Candidate       Votes Received  ");
  2811.         System.out.println("");        
  2812.          System.out.println("Mayor:                  Fernandez              "+vote6);
  2813.          System.out.println("            Lepiten                 "+vote1_6);    
  2814.          System.out.println("");    
  2815.          System.out.println("Vice-Mayor:         Obero                  "+vote2_6);
  2816.          System.out.println("                Nini                 "+vote3_6);
  2817.          System.out.println("");
  2818.          System.out.println("Councilors:   ");
  2819.          System.out.println("\t\t    Clemen\t\t"+vote4_6);
  2820.          System.out.println("\t\t    Larubes\t\t"+vote5_6);
  2821.  
  2822.          System.out.println("\t\t    Lee\t\t"+vote6_6);
  2823.          System.out.println("\t\t    Ped\t\t"+vote7_6);
  2824.  
  2825.          System.out.println("\t\t    Uy\t\t"+vote8_6);
  2826.         System.out.println("\t\t    Yu\t\t"+vote9_6);
  2827.         System.out.println("\t\t    Tiu\t\t"+vote10_6);
  2828.         System.out.println("\t\t    Yee\t\t"+vote11_6);
  2829.         System.out.println("\t\t    Han\t\t"+vote12_6);
  2830.         System.out.println("\t\t    Lim\t\t"+vote13_6);
  2831.         System.out.println("\t\t    Ramos\t\t"+vote14_6);
  2832.         System.out.println("\t\t    Lagare\t\t"+vote15_6);
  2833.         System.out.println("\t\t    Jabican\t\t"+vote16_6);
  2834.         System.out.println("\t\t    Hangad\t\t"+vote17_6);
  2835.         System.out.println("\t\t    Cruz\t\t"+vote18_6);
  2836.         System.out.println("\t\t    Tan\t\t"+vote19_6);
  2837.         System.out.println("\t\t    Peres\t\t"+vote20_6);
  2838.         System.out.println("\t\t    Sanches\t\t"+vote21_6);
  2839.         System.out.println("\t\t    Reyes\t\t"+vote22_6);
  2840.         System.out.println("\t\t    Lopez\t\t"+vote23_6);
  2841.         System.out.println("");
  2842.  
  2843.  
  2844.             System.out.println("");
  2845.          System.out.println("");
  2846.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2847.            System.out.println("");
  2848.         System.out.println("");
  2849.         System.out.println("");        
  2850.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  2851.         System.out.println(" 같***********************************같");
  2852.         System.out.println(" 같    B R G Y.    L A  F I L I P I N A같");
  2853.         System.out.println(" 같***********************************같");
  2854.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  2855.         System.out.println("");    
  2856.         System.out.println("");    
  2857.         System.out.println("Position               Candidate       Votes Received  ");
  2858.         System.out.println("");        
  2859.          System.out.println("Mayor:                  Fernandez              "+vote7);
  2860.          System.out.println("            Lepiten                 "+vote1_7);    
  2861.          System.out.println("");    
  2862.          System.out.println("Vice-Mayor:         Obero                  "+vote2_7);
  2863.          System.out.println("                Nini                 "+vote3_7);
  2864.          System.out.println("");
  2865.          System.out.println("Councilors:   ");
  2866.          System.out.println("\t\t    Clemen\t\t"+vote4_7);
  2867.          System.out.println("\t\t    Larubes\t\t"+vote5_7);
  2868.  
  2869.          System.out.println("\t\t    Lee\t\t"+vote6_7);
  2870.          System.out.println("\t\t    Ped\t\t"+vote7_7);
  2871.  
  2872.          System.out.println("\t\t    Uy\t\t"+vote8_7);
  2873.         System.out.println("\t\t    Yu\t\t"+vote9_7);
  2874.         System.out.println("\t\t    Tiu\t\t"+vote10_7);
  2875.         System.out.println("\t\t    Yee\t\t"+vote11_7);
  2876.         System.out.println("\t\t    Han\t\t"+vote12_7);
  2877.         System.out.println("\t\t    Lim\t\t"+vote13_7);
  2878.         System.out.println("\t\t    Ramos\t\t"+vote14_7);
  2879.         System.out.println("\t\t    Lagare\t\t"+vote15_7);
  2880.         System.out.println("\t\t    Jabican\t\t"+vote16_7);
  2881.         System.out.println("\t\t    Hangad\t\t"+vote17_7);
  2882.         System.out.println("\t\t    Cruz\t\t"+vote18_7);
  2883.         System.out.println("\t\t    Tan\t\t"+vote19_7);
  2884.         System.out.println("\t\t    Peres\t\t"+vote20_7);
  2885.         System.out.println("\t\t    Sanches\t\t"+vote21_7);
  2886.         System.out.println("\t\t    Reyes\t\t"+vote22_7);
  2887.         System.out.println("\t\t    Lopez\t\t"+vote23_7);
  2888.         System.out.println("");
  2889.  
  2890.  
  2891.             System.out.println("");
  2892.          System.out.println("");
  2893.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2894.            System.out.println("");
  2895.         System.out.println("");
  2896.         System.out.println("");        
  2897.         System.out.println(" 같같같같같같같같같같같같같같같같같         " );
  2898.         System.out.println(" 같******************************같");
  2899.         System.out.println(" 같    B R G Y.    C A N O C O T A N같");
  2900.         System.out.println(" 같******************************같");
  2901.         System.out.println(" 같같같같같같같같같같같같같같같같같               ");
  2902.         System.out.println("");    
  2903.         System.out.println("");    
  2904.         System.out.println("Position               Candidate       Votes Received  ");
  2905.         System.out.println("");        
  2906.          System.out.println("Mayor:                  Fernandez              "+vote8);
  2907.          System.out.println("            Lepiten                 "+vote1_8);    
  2908.          System.out.println("");    
  2909.          System.out.println("Vice-Mayor:         Obero                  "+vote2_8);
  2910.          System.out.println("                Nini                 "+vote3_8);
  2911.          System.out.println("");
  2912.          System.out.println("Councilors:   ");
  2913.          System.out.println("\t\t    Clemen\t\t"+vote4_8);
  2914.          System.out.println("\t\t    Larubes\t\t"+vote5_8);
  2915.  
  2916.          System.out.println("\t\t    Lee\t\t"+vote6_8);
  2917.          System.out.println("\t\t    Ped\t\t"+vote7_8);
  2918.  
  2919.          System.out.println("\t\t    Uy\t\t"+vote8_8);
  2920.         System.out.println("\t\t    Yu\t\t"+vote9_8);
  2921.         System.out.println("\t\t    Tiu\t\t"+vote10_8);
  2922.         System.out.println("\t\t    Yee\t\t"+vote11_8);
  2923.         System.out.println("\t\t    Han\t\t"+vote12_8);
  2924.         System.out.println("\t\t    Lim\t\t"+vote13_8);
  2925.         System.out.println("\t\t    Ramos\t\t"+vote14_8);
  2926.         System.out.println("\t\t    Lagare\t\t"+vote15_8);
  2927.         System.out.println("\t\t    Jabican\t\t"+vote16_8);
  2928.         System.out.println("\t\t    Hangad\t\t"+vote17_8);
  2929.         System.out.println("\t\t    Cruz\t\t"+vote18_8);
  2930.         System.out.println("\t\t    Tan\t\t"+vote19_8);
  2931.         System.out.println("\t\t    Peres\t\t"+vote20_8);
  2932.         System.out.println("\t\t    Sanches\t\t"+vote21_8);
  2933.         System.out.println("\t\t    Reyes\t\t"+vote22_8);
  2934.         System.out.println("\t\t    Lopez\t\t"+vote23_8);
  2935.         System.out.println("");
  2936.  
  2937.  
  2938.             System.out.println("");
  2939.          System.out.println("");
  2940.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2941.            System.out.println("");
  2942.         System.out.println("");
  2943.         System.out.println("");        
  2944.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  2945.         System.out.println(" 같***********************************같");
  2946.         System.out.println(" 같    B R G Y.    S A N  I S I D R O 같");
  2947.         System.out.println(" 같***********************************같");
  2948.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  2949.         System.out.println("");    
  2950.         System.out.println("");    
  2951.         System.out.println("Position               Candidate       Votes Received  ");
  2952.         System.out.println("");        
  2953.          System.out.println("Mayor:                  Fernandez              "+vote9);
  2954.          System.out.println("            Lepiten                 "+vote1_9);    
  2955.          System.out.println("");    
  2956.          System.out.println("Vice-Mayor:         Obero                  "+vote2_9);
  2957.          System.out.println("                Nini                 "+vote3_9);
  2958.          System.out.println("");
  2959.          System.out.println("Councilors:   ");
  2960.          System.out.println("\t\t    Clemen\t\t"+vote4_9);
  2961.          System.out.println("\t\t    Larubes\t\t"+vote5_9);
  2962.  
  2963.          System.out.println("\t\t    Lee\t\t"+vote6_9);
  2964.          System.out.println("\t\t    Ped\t\t"+vote7_9);
  2965.  
  2966.          System.out.println("\t\t    Uy\t\t"+vote8_9);
  2967.         System.out.println("\t\t    Yu\t\t"+vote9_9);
  2968.         System.out.println("\t\t    Tiu\t\t"+vote10_9);
  2969.         System.out.println("\t\t    Yee\t\t"+vote11_9);
  2970.         System.out.println("\t\t    Han\t\t"+vote12_9);
  2971.         System.out.println("\t\t    Lim\t\t"+vote13_9);
  2972.         System.out.println("\t\t    Ramos\t\t"+vote14_9);
  2973.         System.out.println("\t\t    Lagare\t\t"+vote15_9);
  2974.         System.out.println("\t\t    Jabican\t\t"+vote16_9);
  2975.         System.out.println("\t\t    Hangad\t\t"+vote17_9);
  2976.         System.out.println("\t\t    Cruz\t\t"+vote18_9);
  2977.         System.out.println("\t\t    Tan\t\t"+vote19_9);
  2978.         System.out.println("\t\t    Peres\t\t"+vote20_9);
  2979.         System.out.println("\t\t    Sanches\t\t"+vote21_9);
  2980.         System.out.println("\t\t    Reyes\t\t"+vote22_9);
  2981.         System.out.println("\t\t    Lopez\t\t"+vote23_9);
  2982.         System.out.println("");
  2983.  
  2984.  
  2985.  
  2986.             System.out.println("");
  2987.          System.out.println("");
  2988.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  2989.            System.out.println("");
  2990.         System.out.println("");
  2991.         System.out.println("");        
  2992.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  2993.         System.out.println(" 같**********************************************같");
  2994.         System.out.println(" 같    B R G Y.    N U E V A   F U E R Z A        같");
  2995.         System.out.println(" 같**********************************************같");
  2996.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  2997.         System.out.println("");    
  2998.         System.out.println("");    
  2999.         System.out.println("Position               Candidate       Votes Received  ");
  3000.         System.out.println("");        
  3001.          System.out.println("Mayor:                  Fernandez              "+vote10);
  3002.          System.out.println("            Lepiten                 "+vote1_10);    
  3003.          System.out.println("");    
  3004.          System.out.println("Vice-Mayor:         Obero                  "+vote2_10);
  3005.          System.out.println("                Nini                 "+vote3_10);
  3006.          System.out.println("");
  3007.          System.out.println("Councilors:   ");
  3008.          System.out.println("\t\t    Clemen\t\t"+vote4_10);
  3009.          System.out.println("\t\t    Larubes\t\t"+vote5_10);
  3010.  
  3011.          System.out.println("\t\t    Lee\t\t"+vote6_10);
  3012.          System.out.println("\t\t    Ped\t\t"+vote7_10);
  3013.  
  3014.          System.out.println("\t\t    Uy\t\t"+vote8_10);
  3015.         System.out.println("\t\t    Yu\t\t"+vote9_10);
  3016.         System.out.println("\t\t    Tiu\t\t"+vote10_10);
  3017.         System.out.println("\t\t    Yee\t\t"+vote11_10);
  3018.         System.out.println("\t\t    Han\t\t"+vote12_10);
  3019.         System.out.println("\t\t    Lim\t\t"+vote13_10);
  3020.         System.out.println("\t\t    Ramos\t\t"+vote14_10);
  3021.         System.out.println("\t\t    Lagare\t\t"+vote15_10);
  3022.         System.out.println("\t\t    Jabican\t\t"+vote16_10);
  3023.         System.out.println("\t\t    Hangad\t\t"+vote17_10);
  3024.         System.out.println("\t\t    Cruz\t\t"+vote18_10);
  3025.         System.out.println("\t\t    Tan\t\t"+vote19_10);
  3026.         System.out.println("\t\t    Peres\t\t"+vote20_10);
  3027.         System.out.println("\t\t    Sanches\t\t"+vote21_10);
  3028.         System.out.println("\t\t    Reyes\t\t"+vote22_10);
  3029.         System.out.println("\t\t    Lopez\t\t"+vote23_10);
  3030.         System.out.println("");
  3031.  
  3032.  
  3033.  
  3034.         int mayor=vote+vote2+vote3+vote4+vote5+vote6+vote7+vote8+vote9+vote10;
  3035.         int mayor2=vote1_1+vote1_2+vote1_3+vote1_4+vote1_5+vote1_6+vote1_7+vote1_8+vote1_9+vote1_10;
  3036.         int vm=vote2_1+vote2_2+vote2_3+vote2_4+vote2_5+vote2_6+vote2_7+vote2_8+vote2_9+vote2_10;
  3037.         int vm2=vote3_1+vote3_2+vote3_3+vote3_4+vote3_5+vote3_6+vote3_7+vote3_8+vote3_9+vote3_10;
  3038.         int con1=vote4_1+vote4_2+vote4_3+vote4_4+vote4_5+vote4_6+vote4_7+vote4_8+vote4_9+vote4_10;
  3039.         int con2=vote5_1+vote5_2+vote5_3+vote5_4+vote5_5+vote5_6+vote5_7+vote5_8+vote5_9+vote5_10;
  3040.         int con3=vote6_1+vote6_2+vote6_3+vote6_4+vote6_5+vote6_6+vote6_7+vote6_8+vote6_9+vote6_10;
  3041.         int con4=vote7_1+vote7_2+vote7_3+vote7_4+vote7_5+vote7_6+vote7_7+vote7_8+vote7_9+vote7_10;
  3042.         int con5=vote8_1+vote8_2+vote8_3+vote8_4+vote8_5+vote8_6+vote8_7+vote8_8+vote8_9+vote8_10;
  3043.         int con6=vote9_1+vote9_2+vote9_3+vote9_4+vote9_5+vote9_6+vote9_7+vote9_8+vote9_9+vote9_10;
  3044.         int con7=vote10_1+vote10_2+vote10_3+vote10_4+vote10_5+vote10_6+vote10_7+vote10_8+vote10_9+vote10_10;
  3045.         int con8=vote11_1+vote11_2+vote11_3+vote11_4+vote11_5+vote11_6+vote11_7+vote11_8+vote11_9+vote11_10;
  3046.         int con9=vote12_1+vote12_2+vote12_3+vote12_4+vote12_5+vote12_6+vote12_7+vote12_8+vote12_9+vote12_10;
  3047.         int con10=vote13_1+vote13_2+vote13_3+vote13_4+vote13_5+vote13_6+vote13_7+vote13_8+vote13_9+vote13_10;
  3048.         int con11=vote14_1+vote14_2+vote14_3+vote14_4+vote14_5+vote14_6+vote14_7+vote14_8+vote14_9+vote14_10;
  3049.         int con12=vote15_1+vote15_2+vote15_3+vote15_4+vote15_5+vote15_6+vote15_7+vote15_8+vote15_9+vote15_10;
  3050.         int con13=vote16_1+vote16_2+vote16_3+vote16_4+vote16_5+vote16_6+vote16_7+vote16_8+vote16_9+vote16_10;
  3051.         int con14=vote17_1+vote17_2+vote17_3+vote17_4+vote17_5+vote17_6+vote17_7+vote17_8+vote17_9+vote17_10;
  3052.         int con15=vote18_1+vote18_2+vote18_3+vote18_4+vote18_5+vote18_6+vote18_7+vote18_8+vote18_9+vote18_10;
  3053.         int con16=vote19_1+vote19_2+vote19_3+vote19_4+vote19_5+vote19_6+vote19_7+vote19_8+vote19_9+vote19_10;
  3054.         int con17=vote20_1+vote20_2+vote20_3+vote20_4+vote20_5+vote20_6+vote20_7+vote20_8+vote20_9+vote20_10;
  3055.         int con18=vote21_1+vote21_2+vote21_3+vote21_4+vote21_5+vote21_6+vote21_7+vote21_8+vote21_9+vote21_10;
  3056.         int con19=vote22_1+vote22_2+vote22_3+vote22_4+vote22_5+vote22_6+vote22_7+vote22_8+vote22_9+vote22_10;
  3057.         int con20=vote23_1+vote23_2+vote23_3+vote23_4+vote23_5+vote23_6+vote23_7+vote23_8+vote23_9+vote23_10;
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  3064.            System.out.println("");
  3065.         System.out.println("");
  3066.         System.out.println("");        
  3067.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  3068.         System.out.println(" 같**********************************같");
  3069.         System.out.println(" 같      TOTAL VOTES RECEIVED        같");
  3070.         System.out.println(" 같**********************************같");
  3071.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  3072.         System.out.println("");    
  3073.         System.out.println("");    
  3074.         System.out.println("Position               Candidate       Votes Received  ");
  3075.         System.out.println("");        
  3076.          System.out.println("Mayor:                  Fernandez              "+mayor);
  3077.          System.out.println("            Lepiten                 "+mayor2);    
  3078.          System.out.println("");    
  3079.          System.out.println("Vice-Mayor:         Obero                  "+vm);
  3080.          System.out.println("                Nini                 "+vm2);
  3081.          System.out.println("");
  3082.          System.out.println("Councilors:   ");
  3083.          System.out.println("\t\t    Clemen\t\t"+con1);
  3084.          System.out.println("\t\t    Larubes\t\t"+con2);
  3085.  
  3086.          System.out.println("\t\t    Lee\t\t"+con3);
  3087.          System.out.println("\t\t    Ped\t\t"+con4);
  3088.  
  3089.          System.out.println("\t\t    Uy\t\t"+con5);
  3090.         System.out.println("\t\t    Yu\t\t"+con6);
  3091.         System.out.println("\t\t    Tiu\t\t"+con7);
  3092.         System.out.println("\t\t    Yee\t\t"+con8);
  3093.         System.out.println("\t\t    Han\t\t"+con9);
  3094.         System.out.println("\t\t    Lim\t\t"+con10);
  3095.         System.out.println("\t\t    Ramos\t\t"+con11);
  3096.         System.out.println("\t\t    Lagare\t\t"+con12);
  3097.         System.out.println("\t\t    Jabican\t\t"+con13);
  3098.         System.out.println("\t\t    Hangad\t\t"+con14);
  3099.         System.out.println("\t\t    Cruz\t\t"+con15);
  3100.         System.out.println("\t\t    Tan\t\t"+con16);
  3101.         System.out.println("\t\t    Peres\t\t"+con17);
  3102.         System.out.println("\t\t    Sanches\t\t"+con18);
  3103.         System.out.println("\t\t    Reyes\t\t"+con19);
  3104.         System.out.println("\t\t    Lopez\t\t"+con20);
  3105.         System.out.println("");
  3106.  
  3107.  
  3108.  
  3109.      /*/condition 1
  3110.          if(vote>voteR){
  3111.  
  3112.              win1=" The Mayor elect is Fernandez";
  3113.              }
  3114.  
  3115.          else if (vote<voteR){
  3116.  
  3117.              win1=" The Mayor elect is Lepiten";
  3118.              }
  3119.  
  3120.  
  3121.  
  3122.  
  3123.          else{
  3124.              win1="DRAW (equal no. of votes received)";
  3125.  
  3126.  
  3127.          }
  3128.  
  3129.              System.out.println(win1);
  3130.  
  3131.  
  3132.          //condition 2
  3133.          if(vote2>voteF){
  3134.  
  3135.              win2=" The Vice-Mayor elect is Obero";
  3136.              }
  3137.  
  3138.          else if(voteF>vote2)
  3139.          {
  3140.              win2=" The Vice-Mayor elect is Nini";
  3141.  
  3142.              }
  3143.  
  3144.          else{
  3145.              win1="DRAW (equal no. of votes received)";
  3146.  
  3147.              }
  3148.  
  3149.              System.out.println(win2);
  3150.  
  3151.  
  3152.          //condition 3
  3153.          if(vote3>voteJ){
  3154.              System.out.println("\n\nCouncilors:");
  3155.              win3="\t\tLarubes";
  3156.  
  3157.          }
  3158.          else if(vote3<voteJ){
  3159.              System.out.println(win3);
  3160.              win3="\t\tClemen";
  3161.  
  3162.  
  3163.          }
  3164.          else{
  3165.              win1="DRAW (equal no. of votes received)";
  3166.  
  3167.              }
  3168.  
  3169.           if(vote4>voteY){
  3170.  
  3171.              win3="\t\tPed";
  3172.  
  3173.          }
  3174.          else if(vote4<voteY){
  3175.              System.out.println(win3);
  3176.              win3="\t\tLee";
  3177.  
  3178.  
  3179.          }
  3180.          else{
  3181.              win1="DRAW (equal no. of votes received)";
  3182.  
  3183.              }
  3184.          if(vote5>voteU){
  3185.              System.out.println("\n\nCouncilors:");
  3186.              win3="\t\tLarubes";
  3187.  
  3188.          }
  3189.          else if(vote5<voteU){
  3190.              System.out.println(win3);
  3191.              win3="\t\tClemen";
  3192.  
  3193.  
  3194.          }
  3195.          else{
  3196.              win1="DRAW (equal no. of votes received)";
  3197.  
  3198.              }
  3199.  
  3200.  
  3201.          if(vote6>vote7){
  3202.              System.out.println("\n\nCouncilors:");
  3203.              win3="\t\tLarubes";
  3204.  
  3205.          }
  3206.          else if(vote6<vote7){
  3207.              System.out.println(win3);
  3208.              win3="\t\tClemen";
  3209.  
  3210.  
  3211.          }
  3212.          else{
  3213.              win1="DRAW (equal no. of votes received)";
  3214.  
  3215.              }
  3216.  
  3217.          if(vote8>vote9){
  3218.  
  3219.              win3="\t\tLarubes";
  3220.  
  3221.          }
  3222.          else if(vote8<vote9){
  3223.              System.out.println(win3);
  3224.              win3="\t\tClemen";
  3225.  
  3226.  
  3227.          }
  3228.          else{
  3229.              win1="DRAW (equal no. of votes received)";
  3230.  
  3231.              }
  3232.  
  3233.          if(vote10>vote11){
  3234.              System.out.println("\n\nCouncilors:");
  3235.              win3="\t\tLarubes";
  3236.  
  3237.          }
  3238.          else if(vote10<vote11){
  3239.              System.out.println(win3);
  3240.              win3="\t\tClemen";
  3241.  
  3242.  
  3243.          }
  3244.          else{
  3245.              win1="DRAW (equal no. of votes received)";
  3246.  
  3247.              }
  3248.          if(vote12>vote13){
  3249.              System.out.println("\n\nCouncilors:");
  3250.              win3="\t\tLarubes";
  3251.  
  3252.          }
  3253.          else if(vote12<vote13){
  3254.              System.out.println(win3);
  3255.              win3="\t\tClemen";
  3256.  
  3257.  
  3258.          }
  3259.          else{
  3260.              win1="DRAW (equal no. of votes received)";
  3261.  
  3262.              }
  3263.          if(vote14>vote15){
  3264.              System.out.println("\n\nCouncilors:");
  3265.              win3="\t\tLarubes";
  3266.  
  3267.          }
  3268.          else if(vote14<vote15){
  3269.              System.out.println(win3);
  3270.              win3="\t\tClemen";
  3271.  
  3272.  
  3273.          }
  3274.          else{
  3275.              win1="DRAW (equal no. of votes received)";
  3276.  
  3277.              }
  3278.          if(vote16>vote17){
  3279.              System.out.println("\n\nCouncilors:");
  3280.              win3="\t\tLarubes";
  3281.  
  3282.          }
  3283.          else if(vote16<vote17){
  3284.              System.out.println(win3);
  3285.              win3="\t\tClemen";
  3286.  
  3287.  
  3288.          }
  3289.          else{
  3290.              win1="DRAW (equal no. of votes received)";
  3291.  
  3292.              }
  3293.          if(vote18>vote19){
  3294.              System.out.println("\n\nCouncilors:");
  3295.              win3="\t\tLarubes";
  3296.  
  3297.          }
  3298.          else if(vote18<vote19){
  3299.              System.out.println(win3);
  3300.              win3="\t\tClemen";
  3301.  
  3302.  
  3303.          }
  3304.          else{
  3305.              win1="DRAW (equal no. of votes received)";
  3306.  
  3307.              }*/
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  }            
  3319.  
  3320.  }
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336. import javax.swing.JOptionPane;
  3337. import java.io.*;
  3338. import java.util.Arrays;
  3339.  
  3340. public class election5
  3341.  
  3342.  public static void main( String[] args )
  3343.  {
  3344.  
  3345.  
  3346.  String[]nem= new String[10];
  3347.  
  3348.  int[] add= new int[10];
  3349.  int i=0;
  3350.  int[] ask= new int[10]; 
  3351.  int vote=0;
  3352.  int vote1_1=0;
  3353.  int vote2_1=0;
  3354.  int vote3_1=0;
  3355.  int vote4_1=0; 
  3356.  int vote5_1=0;
  3357.  int vote6_1=0;
  3358.  int vote7_1=0;
  3359.  int vote8_1=0;
  3360.  int vote9_1=0;
  3361.  int vote10_1=0;
  3362.  int vote11_1=0;
  3363.  int vote12_1=0;
  3364.  int vote13_1=0;
  3365.  int vote14_1=0;
  3366.  int vote15_1=0;
  3367.  int vote16_1=0;
  3368.  int vote17_1=0;
  3369.  int vote18_1=0;
  3370.  int vote19_1=0;
  3371.  int vote20_1=0;
  3372.  int vote21_1=0;
  3373.  int vote22_1=0; 
  3374.  int vote23_1=0;
  3375.  int vote2=0;
  3376.  int vote1_2=0;
  3377.  int vote2_2=0;
  3378.  int vote3_2=0;
  3379.  int vote4_2=0; 
  3380.  int vote5_2=0;
  3381.  int vote6_2=0;
  3382.  int vote7_2=0;
  3383.  int vote8_2=0;
  3384.  int vote9_2=0;
  3385.  int vote10_2=0;
  3386.  int vote11_2=0;
  3387.  int vote12_2=0;
  3388.  int vote13_2=0;
  3389.  int vote14_2=0;
  3390.  int vote15_2=0;
  3391.  int vote16_2=0;
  3392.  int vote17_2=0;
  3393.  int vote18_2=0;
  3394.  int vote19_2=0;
  3395.  int vote20_2=0;
  3396.  int vote21_2=0;
  3397.  int vote22_2=0; 
  3398.  int vote23_2=0;
  3399. int vote3=0;
  3400.  int vote1_3=0;
  3401.  int vote2_3=0;
  3402.  int vote3_3=0;
  3403.  int vote4_3=0; 
  3404.  int vote5_3=0;
  3405.  int vote6_3=0;
  3406.  int vote7_3=0;
  3407.  int vote8_3=0;
  3408.  int vote9_3=0;
  3409.  int vote10_3=0;
  3410.  int vote11_3=0;
  3411.  int vote12_3=0;
  3412.  int vote13_3=0;
  3413.  int vote14_3=0;
  3414.  int vote15_3=0;
  3415.  int vote16_3=0;
  3416.  int vote17_3=0;
  3417.  int vote18_3=0;
  3418.  int vote19_3=0;
  3419.  int vote20_3=0;
  3420.  int vote21_3=0;
  3421.  int vote22_3=0; 
  3422.  int vote23_3=0;
  3423.  int vote4=0;
  3424.  int vote1_4=0;
  3425.  int vote2_4=0;
  3426.  int vote3_4=0;
  3427.  int vote4_4=0; 
  3428.  int vote5_4=0;
  3429.  int vote6_4=0;
  3430.  int vote7_4=0;
  3431.  int vote8_4=0;
  3432.  int vote9_4=0;
  3433.  int vote10_4=0;
  3434.  int vote11_4=0;
  3435.  int vote12_4=0;
  3436.  int vote13_4=0;
  3437.  int vote14_4=0;
  3438.  int vote15_4=0;
  3439.  int vote16_4=0;
  3440.  int vote17_4=0;
  3441.  int vote18_4=0;
  3442.  int vote19_4=0;
  3443.  int vote20_4=0;
  3444.  int vote21_4=0;
  3445.  int vote22_4=0; 
  3446.  int vote23_4=0;
  3447.  
  3448.  int vote5=0;
  3449.  int vote1_5=0;
  3450.  int vote2_5=0;
  3451.  int vote3_5=0;
  3452.  int vote4_5=0; 
  3453.  int vote5_5=0;
  3454.  int vote6_5=0;
  3455.  int vote7_5=0;
  3456.  int vote8_5=0;
  3457.  int vote9_5=0;
  3458.  int vote10_5=0;
  3459.  int vote11_5=0;
  3460.  int vote12_5=0;
  3461.  int vote13_5=0;
  3462.  int vote14_5=0;
  3463.  int vote15_5=0;
  3464.  int vote16_5=0;
  3465.  int vote17_5=0;
  3466.  int vote18_5=0;
  3467.  int vote19_5=0;
  3468.  int vote20_5=0;
  3469.  int vote21_5=0;
  3470.  int vote22_5=0; 
  3471.  int vote23_5=0;
  3472.  
  3473.  int vote6=0;
  3474.  int vote1_6=0;
  3475.  int vote2_6=0;
  3476.  int vote3_6=0;
  3477.  int vote4_6=0; 
  3478.  int vote5_6=0;
  3479.  int vote6_6=0;
  3480.  int vote7_6=0;
  3481.  int vote8_6=0;
  3482.  int vote9_6=0;
  3483.  int vote10_6=0;
  3484.  int vote11_6=0;
  3485.  int vote12_6=0;
  3486.  int vote13_6=0;
  3487.  int vote14_6=0;
  3488.  int vote15_6=0;
  3489.  int vote16_6=0;
  3490.  int vote17_6=0;
  3491.  int vote18_6=0;
  3492.  int vote19_6=0;
  3493.  int vote20_6=0;
  3494.  int vote21_6=0;
  3495.  int vote22_6=0; 
  3496.  int vote23_6=0;
  3497.  
  3498.  int vote7=0;
  3499.  int vote1_7=0;
  3500.  int vote2_7=0;
  3501.  int vote3_7=0;
  3502.  int vote4_7=0; 
  3503.  int vote5_7=0;
  3504.  int vote6_7=0;
  3505.  int vote7_7=0;
  3506.  int vote8_7=0;
  3507.  int vote9_7=0;
  3508.  int vote10_7=0;
  3509.  int vote11_7=0;
  3510.  int vote12_7=0;
  3511.  int vote13_7=0;
  3512.  int vote14_7=0;
  3513.  int vote15_7=0;
  3514.  int vote16_7=0;
  3515.  int vote17_7=0;
  3516.  int vote18_7=0;
  3517.  int vote19_7=0;
  3518.  int vote20_7=0;
  3519.  int vote21_7=0;
  3520.  int vote22_7=0; 
  3521.  int vote23_7=0;
  3522.  
  3523.  int vote8=0;
  3524.  int vote1_8=0;
  3525.  int vote2_8=0;
  3526.  int vote3_8=0;
  3527.  int vote4_8=0; 
  3528.  int vote5_8=0;
  3529.  int vote6_8=0;
  3530.  int vote7_8=0;
  3531.  int vote8_8=0;
  3532.  int vote9_8=0;
  3533.  int vote10_8=0;
  3534.  int vote11_8=0;
  3535.  int vote12_8=0;
  3536.  int vote13_8=0;
  3537.  int vote14_8=0;
  3538.  int vote15_8=0;
  3539.  int vote16_8=0;
  3540.  int vote17_8=0;
  3541.  int vote18_8=0;
  3542.  int vote19_8=0;
  3543.  int vote20_8=0;
  3544.  int vote21_8=0;
  3545.  int vote22_8=0; 
  3546.  int vote23_8=0;
  3547.  
  3548.  int vote9=0;
  3549.  int vote1_9=0;
  3550.  int vote2_9=0;
  3551.  int vote3_9=0;
  3552.  int vote4_9=0; 
  3553.  int vote5_9=0;
  3554.  int vote6_9=0;
  3555.  int vote7_9=0;
  3556.  int vote8_9=0;
  3557.  int vote9_9=0;
  3558.  int vote10_9=0;
  3559.  int vote11_9=0;
  3560.  int vote12_9=0;
  3561.  int vote13_9=0;
  3562.  int vote14_9=0;
  3563.  int vote15_9=0;
  3564.  int vote16_9=0;
  3565.  int vote17_9=0;
  3566.  int vote18_9=0;
  3567.  int vote19_9=0;
  3568.  int vote20_9=0;
  3569.  int vote21_9=0;
  3570.  int vote22_9=0; 
  3571.  int vote23_9=0;
  3572.  
  3573.  int vote10=0;
  3574.  int vote1_10=0;
  3575.  int vote2_10=0;
  3576.  int vote3_10=0;
  3577.  int vote4_10=0; 
  3578.  int vote5_10=0;
  3579.  int vote6_10=0;
  3580.  int vote7_10=0;
  3581.  int vote8_10=0;
  3582.  int vote9_10=0;
  3583.  int vote10_10=0;
  3584.  int vote11_10=0;
  3585.  int vote12_10=0;
  3586.  int vote13_10=0;
  3587.  int vote14_10=0;
  3588.  int vote15_10=0;
  3589.  int vote16_10=0;
  3590.  int vote17_10=0;
  3591.  int vote18_10=0;
  3592.  int vote19_10=0;
  3593.  int vote20_10=0;
  3594.  int vote21_10=0;
  3595.  int vote22_10=0; 
  3596.  int vote23_10=0;
  3597.  
  3598.  
  3599.  int ans;
  3600.    int ans1=0;
  3601.   String win1="";
  3602.   String win2="";
  3603.   String win3="";
  3604.   String win4="";
  3605.   String win5="";
  3606.   int w;
  3607. //  int ans=0;
  3608.  
  3609.  
  3610.          System.out.println("");
  3611.          System.out.println("");
  3612.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  3613.  
  3614.         System.out.println("\t\t\t\tTagum City Election System\n\n");
  3615.  
  3616.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  3617.  
  3618.         System.out.println("POSITION          \tCODE          CANDIDATES\n\n");
  3619.  
  3620.  
  3621.         System.out.println("Mayor:\t\t\t\t (1)        Fernandez\n");
  3622.          System.out.println("\t\t\t    (2)        Lepiten\n\n");
  3623.         System.out.println("Vice-Mayor:\t\t\t(1)        Obero");
  3624.         System.out.println("\t\t        (2)        Nini\n\n");
  3625.         System.out.println("Councilors:");
  3626.         System.out.println("\t\t        (1)        Clemen");
  3627.          System.out.println("\t\t        (2)        Larubes");
  3628.         System.out.println("\t\t        (3)        Lee");
  3629.         System.out.println("\t\t        (4)        Ped");
  3630.         System.out.println("\t\t        (5)        Uy");
  3631.         System.out.println("\t\t        (6)        Yu");
  3632.         System.out.println("\t\t        (7)        Tiu");
  3633.         System.out.println("\t\t        (8)        Yee    ");
  3634.         System.out.println("\t\t        (9)        Han");
  3635.         System.out.println("\t\t        (10)        Lim");
  3636.         System.out.println("\t\t        (11)        Ramos");
  3637.         System.out.println("\t\t        (12)        Lagare");
  3638.         System.out.println("\t\t        (13)        Jabican");
  3639.         System.out.println("\t\t        (14)        Hangad");
  3640.         System.out.println("\t\t        (15)        Cruz");
  3641.         System.out.println("\t\t        (16)        Tan");
  3642.         System.out.println("\t\t        (17)        Peres");
  3643.         System.out.println("\t\t        (18)        Sanchez");
  3644.         System.out.println("\t\t        (19)        Reyes");
  3645.          System.out.println("\t\t        (20)        Lopez");
  3646.  
  3647.  
  3648.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  3649.         System.out.println("\n    \t\tBARANGAYS IN TAGUM CITY  " );
  3650.  
  3651.         System.out.println("\n    Name of Barangay                         Code  " );
  3652.  
  3653.         System.out.println("\n    Barangay Apokon                                  1  " );
  3654.         System.out.println("\n    Barangay Mankilam                         2  " );
  3655.         System.out.println("\n    Barangay Magugpo North                            3  " );
  3656.         System.out.println("\n    Barangay Magugpo South                            4  " );
  3657.         System.out.println("\n    Barangay Madaum                                5  " );
  3658.         System.out.println("\n    Barangay Visayan Village                     6  " );
  3659.         System.out.println("\n    Barangay La Filipina                            7  " );
  3660.         System.out.println("\n    Barangay Canocotan                            8  " );
  3661.         System.out.println("\n    Barangay San Isidro                            9  " );
  3662.         System.out.println("\n    Barangay Nueva Fuerza                           10  " );
  3663.         System.out.println("\n\n같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  3664.  
  3665.  
  3666.  
  3667.            do{
  3668.  
  3669.         nem[i]=(JOptionPane.showInputDialog("Enter Your Name"));
  3670.  
  3671.          System.out.println("  ");
  3672.         System.out.println("____________________________________");
  3673.         System.out.println("\nVoter's Name:"+nem[i]);
  3674.  
  3675.         add[i]=Integer.parseInt(JOptionPane.showInputDialog("Address (choose among the specified barangay write the code only):"));
  3676.  
  3677.              {
  3678.  
  3679.     //switch in every barangay    
  3680.     switch (add[i]){
  3681.         case 1:
  3682.                 System.out.println("Address: Barangay Apokon");
  3683.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  3684.            {
  3685.  
  3686.  
  3687.              switch (ask[i]){
  3688.              case 1:
  3689.              System.out.println("____________________________________");
  3690.              System.out.println("Mayor:            Fernandez");
  3691.              vote++;
  3692.  
  3693.              break;
  3694.              case 2:
  3695.  
  3696.              System.out.println("____________________________________");
  3697.             System.out.println("Mayor:        Lepiten");
  3698.              vote1_1++;
  3699.              break;
  3700.              default:
  3701.              System.out.println("invalid number");
  3702.          }            
  3703.          }
  3704.  
  3705.  
  3706.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  3707.            {
  3708.  
  3709.  
  3710.              switch (ask[i]){
  3711.              case 1:
  3712.  
  3713.              System.out.println("Vice-Mayor:        Obero   ");
  3714.              vote2_1++;
  3715.              break;
  3716.              case 2:
  3717.  
  3718.              System.out.println("Vice-Mayor:        Nini  ");
  3719.              vote3_1++;
  3720.              break;
  3721.              default:
  3722.              System.out.println("invalid number");
  3723.              }            
  3724.          }
  3725.          int tem=10;
  3726.  
  3727.          System.out.println("\n\nCouncilors:"); 
  3728.          for(int balik=0;balik<tem;balik++){
  3729.  
  3730.  
  3731.      //for(w=0;w<10;w++){
  3732.  
  3733.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  3734.  
  3735.            {
  3736.  
  3737.  
  3738.              switch (ask[i]){
  3739.              case 1:
  3740.  
  3741.              System.out.println("\t\t\tClemen");
  3742.              vote4_1++;
  3743.              break;
  3744.              case 2:
  3745.  
  3746.              System.out.println("\t\t\tLarubes");
  3747.              vote5_1++;
  3748.              break;
  3749.  
  3750.              case 3:
  3751.              System.out.println("\t\t\tLee");
  3752.              vote6_1++;
  3753.              break;
  3754.  
  3755.              case 4:
  3756.               System.out.println("\t\t\tPed");
  3757.              vote7_1++;
  3758.              break;
  3759.  
  3760.             case 5:
  3761.  
  3762.              System.out.println("\t\t\tUy");
  3763.  
  3764.              vote8_1++;
  3765.              break;
  3766.  
  3767.              case 6:
  3768.  
  3769.              System.out.println("\t\t\tYu");
  3770.  
  3771.              vote9_1++;
  3772.              break;
  3773.  
  3774.              case 7:
  3775.  
  3776.              System.out.println("\t\t\tTiu");
  3777.  
  3778.              vote10_1++;
  3779.              break;
  3780.  
  3781.              case 8:
  3782.  
  3783.              System.out.println("\t\t\tYee");
  3784.  
  3785.              vote11_1++;
  3786.              break;
  3787.  
  3788.              case 9:
  3789.  
  3790.              System.out.println("\t\t\tHan");
  3791.  
  3792.              vote12_1++;
  3793.              break;
  3794.  
  3795.              case 10:
  3796.  
  3797.              System.out.println("\t\t\tLim");
  3798.  
  3799.              vote13_1++;
  3800.              break;    
  3801.  
  3802.  
  3803.              case 11:
  3804.  
  3805.              System.out.println("\t\t\tRamos");
  3806.  
  3807.              vote14_1++;
  3808.              break;
  3809.  
  3810.              case 12:
  3811.  
  3812.              System.out.println("\t\t\tLagare");
  3813.  
  3814.              vote15_1++;
  3815.              break;
  3816.  
  3817.  
  3818.              case 13:
  3819.  
  3820.              System.out.println("\t\t\tJabican");
  3821.  
  3822.              vote16_1++;
  3823.              break;    
  3824.  
  3825.              case 14:
  3826.  
  3827.              System.out.println("\t\t\tHangad");
  3828.  
  3829.              vote17_1++;
  3830.              break;
  3831.  
  3832.  
  3833.              case 15:
  3834.  
  3835.              System.out.println("\t\t\tCruz");
  3836.  
  3837.              vote18_1++;
  3838.              break;
  3839.  
  3840.  
  3841.              case 16:
  3842.  
  3843.              System.out.println("\t\t\tTan");
  3844.  
  3845.              vote19_1++;
  3846.              break;
  3847.  
  3848.              case 17:
  3849.  
  3850.              System.out.println("\t\t\tPeres");
  3851.  
  3852.              vote20_1++;
  3853.              break;
  3854.  
  3855.              case 18:
  3856.  
  3857.              System.out.println("\t\t\tSanchez");
  3858.  
  3859.              vote21_1++;
  3860.              break;
  3861.  
  3862.              case 19:
  3863.  
  3864.              System.out.println("\t\t\tReyes");
  3865.              System.out.println("");
  3866.              vote22_1++;
  3867.              break;
  3868.  
  3869.              case 20:
  3870.  
  3871.              System.out.println("\t\t\tLopez");
  3872.              System.out.println("");
  3873.              vote23_1++;
  3874.              break;
  3875.  
  3876.  
  3877.  
  3878.              default:
  3879.              System.out.println("invalid number");
  3880.              }        //switch    
  3881.  
  3882.  
  3883.  
  3884.          }//ask for councilor
  3885.  
  3886.  
  3887.  
  3888.  ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  3889.      switch(ans1)
  3890.      {
  3891.      case 2:
  3892.      tem=0;
  3893.      break;
  3894.     }
  3895.  
  3896.          }//for
  3897.  
  3898.  
  3899.  
  3900.  
  3901.             break;
  3902.  
  3903.         case 2://case para sa brgy. mankilam
  3904.         System.out.println("Address: Barangay Mankilam");
  3905.         ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  3906.            {
  3907.  
  3908.  
  3909.              switch (ask[i]){
  3910.              case 1:
  3911.              System.out.println("____________________________________");
  3912.              System.out.println("Mayor:            Fernandez");
  3913.              vote2++;
  3914.  
  3915.              break;
  3916.              case 2:
  3917.  
  3918.              System.out.println("____________________________________");
  3919.             System.out.println("Mayor:        Lepiten");
  3920.              vote1_2++;
  3921.              break;
  3922.              default:
  3923.              System.out.println("invalid number");
  3924.          }            
  3925.          }
  3926.  
  3927.  
  3928.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  3929.            {
  3930.  
  3931.  
  3932.              switch (ask[i]){
  3933.              case 1:
  3934.  
  3935.              System.out.println("Vice-Mayor:        Obero   ");
  3936.              vote2_2++;
  3937.              break;
  3938.              case 2:
  3939.  
  3940.              System.out.println("Vice-Mayor:        Nini  ");
  3941.              vote3_2++;
  3942.              break;
  3943.              default:
  3944.              System.out.println("invalid number");
  3945.              }            
  3946.          }
  3947.      //    int
  3948.       tem=10;
  3949.  
  3950.          System.out.println("\n\nCouncilors:"); 
  3951.          for(int balik=0;balik<tem;balik++){
  3952.  
  3953.  
  3954.      //for(w=0;w<10;w++){
  3955.  
  3956.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  3957.  
  3958.            {
  3959.  
  3960.  
  3961.              switch (ask[i]){
  3962.              case 1:
  3963.  
  3964.              System.out.println("\t\t\tClemen");
  3965.              vote4_2++;
  3966.              break;
  3967.              case 2:
  3968.  
  3969.              System.out.println("\t\t\tLarubes");
  3970.              vote5_2++;
  3971.              break;
  3972.  
  3973.              case 3:
  3974.              System.out.println("\t\t\tLee");
  3975.              vote6_2++;
  3976.              break;
  3977.  
  3978.              case 4:
  3979.               System.out.println("\t\t\tPed");
  3980.              vote7_2++;
  3981.              break;
  3982.  
  3983.             case 5:
  3984.  
  3985.              System.out.println("\t\t\tUy");
  3986.  
  3987.              vote8_2++;
  3988.              break;
  3989.  
  3990.              case 6:
  3991.  
  3992.              System.out.println("\t\t\tYu");
  3993.  
  3994.              vote9_2++;
  3995.              break;
  3996.  
  3997.              case 7:
  3998.  
  3999.              System.out.println("\t\t\tTiu");
  4000.  
  4001.              vote10_2++;
  4002.              break;
  4003.  
  4004.              case 8:
  4005.  
  4006.              System.out.println("\t\t\tYee");
  4007.  
  4008.              vote11_2++;
  4009.              break;
  4010.  
  4011.              case 9:
  4012.  
  4013.              System.out.println("\t\t\tHan");
  4014.  
  4015.              vote12_2++;
  4016.              break;
  4017.  
  4018.              case 10:
  4019.  
  4020.              System.out.println("\t\t\tLim");
  4021.  
  4022.              vote13_2++;
  4023.              break;    
  4024.  
  4025.  
  4026.              case 11:
  4027.  
  4028.              System.out.println("\t\t\tRamos");
  4029.  
  4030.              vote14_2++;
  4031.              break;
  4032.  
  4033.              case 12:
  4034.  
  4035.              System.out.println("\t\t\tLagare");
  4036.  
  4037.              vote15_2++;
  4038.              break;
  4039.  
  4040.  
  4041.              case 13:
  4042.  
  4043.              System.out.println("\t\t\tJabican");
  4044.  
  4045.              vote16_2++;
  4046.              break;    
  4047.  
  4048.              case 14:
  4049.  
  4050.              System.out.println("\t\t\tHangad");
  4051.  
  4052.              vote17_2++;
  4053.              break;
  4054.  
  4055.  
  4056.              case 15:
  4057.  
  4058.              System.out.println("\t\t\tCruz");
  4059.  
  4060.              vote18_2++;
  4061.              break;
  4062.  
  4063.  
  4064.              case 16:
  4065.  
  4066.              System.out.println("\t\t\tTan");
  4067.  
  4068.              vote19_2++;
  4069.              break;
  4070.  
  4071.              case 17:
  4072.  
  4073.              System.out.println("\t\t\tPeres");
  4074.  
  4075.              vote20_2++;
  4076.              break;
  4077.  
  4078.              case 18:
  4079.  
  4080.              System.out.println("\t\t\tSanchez");
  4081.  
  4082.              vote21_2++;
  4083.              break;
  4084.  
  4085.              case 19:
  4086.  
  4087.              System.out.println("\t\t\tReyes");
  4088.              System.out.println("");
  4089.              vote22_2++;
  4090.              break;
  4091.  
  4092.              case 20:
  4093.  
  4094.              System.out.println("\t\t\tLopez");
  4095.              System.out.println("");
  4096.              vote23_2++;
  4097.              break;
  4098.  
  4099.  
  4100.  
  4101.              default:
  4102.              System.out.println("invalid number");
  4103.              }        //switch    
  4104.  
  4105.  
  4106.  
  4107.          }//ask for councilor
  4108.  
  4109.  
  4110.  
  4111.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  4112.      switch(ans1)
  4113.      {
  4114.      case 2:
  4115.      tem=0;
  4116.      break;
  4117.     }
  4118.  
  4119.          }//for
  4120.  
  4121.  
  4122.                 break;
  4123.  
  4124.  
  4125.                 //case sa magugpo north
  4126.  
  4127.                 case 3:
  4128.                 System.out.println("Address: Barangay Magugpo North");
  4129.                 ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  4130.            {
  4131.  
  4132.  
  4133.              switch (ask[i]){
  4134.              case 1:
  4135.              System.out.println("____________________________________");
  4136.              System.out.println("Mayor:            Fernandez");
  4137.              vote3++;
  4138.  
  4139.              break;
  4140.              case 2:
  4141.  
  4142.              System.out.println("____________________________________");
  4143.             System.out.println("Mayor:        Lepiten");
  4144.              vote1_3++;
  4145.              break;
  4146.              default:
  4147.              System.out.println("invalid number");
  4148.          }            
  4149.          }
  4150.  
  4151.  
  4152.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  4153.            {
  4154.  
  4155.  
  4156.              switch (ask[i]){
  4157.              case 1:
  4158.  
  4159.              System.out.println("Vice-Mayor:        Obero   ");
  4160.              vote2_3++;
  4161.              break;
  4162.              case 2:
  4163.  
  4164.              System.out.println("Vice-Mayor:        Nini  ");
  4165.              vote3_3++;
  4166.              break;
  4167.              default:
  4168.              System.out.println("invalid number");
  4169.              }            
  4170.          }
  4171.      //    int
  4172.       tem=10;
  4173.  
  4174.          System.out.println("\n\nCouncilors:"); 
  4175.          for(int balik=0;balik<tem;balik++){
  4176.  
  4177.  
  4178.      //for(w=0;w<10;w++){
  4179.  
  4180.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  4181.  
  4182.            {
  4183.  
  4184.  
  4185.              switch (ask[i]){
  4186.              case 1:
  4187.  
  4188.              System.out.println("\t\t\tClemen");
  4189.              vote4_3++;
  4190.              break;
  4191.              case 2:
  4192.  
  4193.              System.out.println("\t\t\tLarubes");
  4194.              vote5_3++;
  4195.              break;
  4196.  
  4197.              case 3:
  4198.              System.out.println("\t\t\tLee");
  4199.              vote6_3++;
  4200.              break;
  4201.  
  4202.              case 4:
  4203.               System.out.println("\t\t\tPed");
  4204.              vote7_3++;
  4205.              break;
  4206.  
  4207.             case 5:
  4208.  
  4209.              System.out.println("\t\t\tUy");
  4210.  
  4211.              vote8_3++;
  4212.              break;
  4213.  
  4214.              case 6:
  4215.  
  4216.              System.out.println("\t\t\tYu");
  4217.  
  4218.              vote9_3++;
  4219.              break;
  4220.  
  4221.              case 7:
  4222.  
  4223.              System.out.println("\t\t\tTiu");
  4224.  
  4225.              vote10_3++;
  4226.              break;
  4227.  
  4228.              case 8:
  4229.  
  4230.              System.out.println("\t\t\tYee");
  4231.  
  4232.              vote11_3++;
  4233.              break;
  4234.  
  4235.              case 9:
  4236.  
  4237.              System.out.println("\t\t\tHan");
  4238.  
  4239.              vote12_3++;
  4240.              break;
  4241.  
  4242.              case 10:
  4243.  
  4244.              System.out.println("\t\t\tLim");
  4245.  
  4246.              vote13_3++;
  4247.              break;    
  4248.  
  4249.  
  4250.              case 11:
  4251.  
  4252.              System.out.println("\t\t\tRamos");
  4253.  
  4254.              vote14_3++;
  4255.              break;
  4256.  
  4257.              case 12:
  4258.  
  4259.              System.out.println("\t\t\tLagare");
  4260.  
  4261.              vote15_3++;
  4262.              break;
  4263.  
  4264.  
  4265.              case 13:
  4266.  
  4267.              System.out.println("\t\t\tJabican");
  4268.  
  4269.              vote16_3++;
  4270.              break;    
  4271.  
  4272.              case 14:
  4273.  
  4274.              System.out.println("\t\t\tHangad");
  4275.  
  4276.              vote17_3++;
  4277.              break;
  4278.  
  4279.  
  4280.              case 15:
  4281.  
  4282.              System.out.println("\t\t\tCruz");
  4283.  
  4284.              vote18_3++;
  4285.              break;
  4286.  
  4287.  
  4288.              case 16:
  4289.  
  4290.              System.out.println("\t\t\tTan");
  4291.  
  4292.              vote19_3++;
  4293.              break;
  4294.  
  4295.              case 17:
  4296.  
  4297.              System.out.println("\t\t\tPeres");
  4298.  
  4299.              vote20_3++;
  4300.              break;
  4301.  
  4302.              case 18:
  4303.  
  4304.              System.out.println("\t\t\tSanchez");
  4305.  
  4306.              vote21_3++;
  4307.              break;
  4308.  
  4309.              case 19:
  4310.  
  4311.              System.out.println("\t\t\tReyes");
  4312.              System.out.println("");
  4313.              vote22_3++;
  4314.              break;
  4315.  
  4316.              case 20:
  4317.  
  4318.              System.out.println("\t\t\tLopez");
  4319.              System.out.println("");
  4320.              vote23_3++;
  4321.              default:
  4322.              System.out.println("invalid number");
  4323.              }        //switch    
  4324.  
  4325.  
  4326.  
  4327.          }//ask for councilor
  4328.  
  4329.  
  4330.  
  4331.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  4332.      switch(ans1)
  4333.      {
  4334.      case 2:
  4335.      tem=0;
  4336.      break;
  4337.     }
  4338.  
  4339.          }//for
  4340.  
  4341.  
  4342.                 break;
  4343.  
  4344.                 case 4:
  4345.                 System.out.println("Address: Barangay Magugpo South");
  4346.  
  4347.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  4348.            {
  4349.  
  4350.  
  4351.              switch (ask[i]){
  4352.              case 1:
  4353.              System.out.println("____________________________________");
  4354.              System.out.println("Mayor:            Fernandez");
  4355.              vote4++;
  4356.  
  4357.              break;
  4358.              case 2:
  4359.  
  4360.              System.out.println("____________________________________");
  4361.             System.out.println("Mayor:        Lepiten");
  4362.              vote1_4++;
  4363.              break;
  4364.              default:
  4365.              System.out.println("invalid number");
  4366.          }            
  4367.          }
  4368.  
  4369.  
  4370.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  4371.            {
  4372.  
  4373.  
  4374.              switch (ask[i]){
  4375.              case 1:
  4376.  
  4377.              System.out.println("Vice-Mayor:        Obero   ");
  4378.              vote2_4++;
  4379.              break;
  4380.              case 2:
  4381.  
  4382.              System.out.println("Vice-Mayor:        Nini  ");
  4383.              vote3_4++;
  4384.              break;
  4385.              default:
  4386.              System.out.println("invalid number");
  4387.              }            
  4388.          }
  4389.      //    int
  4390.       tem=10;
  4391.  
  4392.          System.out.println("\n\nCouncilors:"); 
  4393.          for(int balik=0;balik<tem;balik++){
  4394.  
  4395.  
  4396.      //for(w=0;w<10;w++){
  4397.  
  4398.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  4399.  
  4400.            {
  4401.  
  4402.  
  4403.              switch (ask[i]){
  4404.              case 1:
  4405.  
  4406.              System.out.println("\t\t\tClemen");
  4407.              vote4_4++;
  4408.              break;
  4409.              case 2:
  4410.  
  4411.              System.out.println("\t\t\tLarubes");
  4412.              vote5_4++;
  4413.              break;
  4414.  
  4415.              case 3:
  4416.              System.out.println("\t\t\tLee");
  4417.              vote6_4++;
  4418.              break;
  4419.  
  4420.              case 4:
  4421.               System.out.println("\t\t\tPed");
  4422.              vote7_4++;
  4423.              break;
  4424.  
  4425.             case 5:
  4426.  
  4427.              System.out.println("\t\t\tUy");
  4428.  
  4429.              vote8_4++;
  4430.              break;
  4431.  
  4432.              case 6:
  4433.  
  4434.              System.out.println("\t\t\tYu");
  4435.  
  4436.              vote9_4++;
  4437.              break;
  4438.  
  4439.              case 7:
  4440.  
  4441.              System.out.println("\t\t\tTiu");
  4442.  
  4443.              vote10_4++;
  4444.              break;
  4445.  
  4446.              case 8:
  4447.  
  4448.              System.out.println("\t\t\tYee");
  4449.  
  4450.              vote11_4++;
  4451.              break;
  4452.  
  4453.              case 9:
  4454.  
  4455.              System.out.println("\t\t\tHan");
  4456.  
  4457.              vote12_4++;
  4458.              break;
  4459.  
  4460.              case 10:
  4461.  
  4462.              System.out.println("\t\t\tLim");
  4463.  
  4464.              vote13_4++;
  4465.              break;    
  4466.  
  4467.  
  4468.              case 11:
  4469.  
  4470.              System.out.println("\t\t\tRamos");
  4471.  
  4472.              vote14_4++;
  4473.              break;
  4474.  
  4475.              case 12:
  4476.  
  4477.              System.out.println("\t\t\tLagare");
  4478.  
  4479.              vote15_4++;
  4480.              break;
  4481.  
  4482.  
  4483.              case 13:
  4484.  
  4485.              System.out.println("\t\t\tJabican");
  4486.  
  4487.              vote16_3++;
  4488.              break;    
  4489.  
  4490.              case 14:
  4491.  
  4492.              System.out.println("\t\t\tHangad");
  4493.  
  4494.              vote17_4++;
  4495.              break;
  4496.  
  4497.  
  4498.              case 15:
  4499.  
  4500.              System.out.println("\t\t\tCruz");
  4501.  
  4502.              vote18_4++;
  4503.              break;
  4504.  
  4505.  
  4506.              case 16:
  4507.  
  4508.              System.out.println("\t\t\tTan");
  4509.  
  4510.              vote19_4++;
  4511.              break;
  4512.  
  4513.              case 17:
  4514.  
  4515.              System.out.println("\t\t\tPeres");
  4516.  
  4517.              vote20_4++;
  4518.              break;
  4519.  
  4520.              case 18:
  4521.  
  4522.              System.out.println("\t\t\tSanchez");
  4523.  
  4524.              vote21_4++;
  4525.              break;
  4526.  
  4527.              case 19:
  4528.  
  4529.              System.out.println("\t\t\tReyes");
  4530.              System.out.println("");
  4531.              vote22_3++;
  4532.              break;
  4533.  
  4534.              case 20:
  4535.  
  4536.              System.out.println("\t\t\tLopez");
  4537.              System.out.println("");
  4538.              vote23_4++;
  4539.              default:
  4540.              System.out.println("invalid number");
  4541.              }        //switch    
  4542.  
  4543.  
  4544.  
  4545.          }//ask for councilor
  4546.  
  4547.  
  4548.  
  4549.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  4550.      switch(ans1)
  4551.      {
  4552.      case 2:
  4553.      tem=0;
  4554.      break;
  4555.     }
  4556.  
  4557.          }//for
  4558.  
  4559.  
  4560.                 break;
  4561.                 //para sa madaum
  4562.  
  4563.                 case 5:
  4564.                 System.out.println("Address: Barangay Madaum");
  4565.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  4566.            {
  4567.  
  4568.  
  4569.              switch (ask[i]){
  4570.              case 1:
  4571.              System.out.println("____________________________________");
  4572.              System.out.println("Mayor:            Fernandez");
  4573.              vote5++;
  4574.  
  4575.              break;
  4576.              case 2:
  4577.  
  4578.              System.out.println("____________________________________");
  4579.             System.out.println("Mayor:        Lepiten");
  4580.              vote1_5++;
  4581.              break;
  4582.              default:
  4583.              System.out.println("invalid number");
  4584.          }            
  4585.          }
  4586.  
  4587.  
  4588.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  4589.            {
  4590.  
  4591.  
  4592.              switch (ask[i]){
  4593.              case 1:
  4594.  
  4595.              System.out.println("Vice-Mayor:        Obero   ");
  4596.              vote2_5++;
  4597.              break;
  4598.              case 2:
  4599.  
  4600.              System.out.println("Vice-Mayor:        Nini  ");
  4601.              vote3_5++;
  4602.              break;
  4603.              default:
  4604.              System.out.println("invalid number");
  4605.              }            
  4606.          }
  4607.      //    int
  4608.       tem=10;
  4609.  
  4610.          System.out.println("\n\nCouncilors:"); 
  4611.          for(int balik=0;balik<tem;balik++){
  4612.  
  4613.  
  4614.      //for(w=0;w<10;w++){
  4615.  
  4616.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  4617.  
  4618.            {
  4619.  
  4620.  
  4621.              switch (ask[i]){
  4622.              case 1:
  4623.  
  4624.              System.out.println("\t\t\tClemen");
  4625.              vote4_5++;
  4626.              break;
  4627.              case 2:
  4628.  
  4629.              System.out.println("\t\t\tLarubes");
  4630.              vote5_5++;
  4631.              break;
  4632.  
  4633.              case 3:
  4634.              System.out.println("\t\t\tLee");
  4635.              vote6_5++;
  4636.              break;
  4637.  
  4638.              case 4:
  4639.               System.out.println("\t\t\tPed");
  4640.              vote7_5++;
  4641.              break;
  4642.  
  4643.             case 5:
  4644.  
  4645.              System.out.println("\t\t\tUy");
  4646.  
  4647.              vote8_3++;
  4648.              break;
  4649.  
  4650.              case 6:
  4651.  
  4652.              System.out.println("\t\t\tYu");
  4653.  
  4654.              vote9_5++;
  4655.              break;
  4656.  
  4657.              case 7:
  4658.  
  4659.              System.out.println("\t\t\tTiu");
  4660.  
  4661.              vote10_5++;
  4662.              break;
  4663.  
  4664.              case 8:
  4665.  
  4666.              System.out.println("\t\t\tYee");
  4667.  
  4668.              vote11_5++;
  4669.              break;
  4670.  
  4671.              case 9:
  4672.  
  4673.              System.out.println("\t\t\tHan");
  4674.  
  4675.              vote12_5++;
  4676.              break;
  4677.  
  4678.              case 10:
  4679.  
  4680.              System.out.println("\t\t\tLim");
  4681.  
  4682.              vote13_5++;
  4683.              break;    
  4684.  
  4685.  
  4686.              case 11:
  4687.  
  4688.              System.out.println("\t\t\tRamos");
  4689.  
  4690.              vote14_5++;
  4691.              break;
  4692.  
  4693.              case 12:
  4694.  
  4695.              System.out.println("\t\t\tLagare");
  4696.  
  4697.              vote15_5++;
  4698.              break;
  4699.  
  4700.  
  4701.              case 13:
  4702.  
  4703.              System.out.println("\t\t\tJabican");
  4704.  
  4705.              vote16_5++;
  4706.              break;    
  4707.  
  4708.              case 14:
  4709.  
  4710.              System.out.println("\t\t\tHangad");
  4711.  
  4712.              vote17_5++;
  4713.              break;
  4714.  
  4715.  
  4716.              case 15:
  4717.  
  4718.              System.out.println("\t\t\tCruz");
  4719.  
  4720.              vote18_5++;
  4721.              break;
  4722.  
  4723.  
  4724.              case 16:
  4725.  
  4726.              System.out.println("\t\t\tTan");
  4727.  
  4728.              vote19_5++;
  4729.              break;
  4730.  
  4731.              case 17:
  4732.  
  4733.              System.out.println("\t\t\tPeres");
  4734.  
  4735.              vote20_5++;
  4736.              break;
  4737.  
  4738.              case 18:
  4739.  
  4740.              System.out.println("\t\t\tSanchez");
  4741.  
  4742.              vote21_5++;
  4743.              break;
  4744.  
  4745.              case 19:
  4746.  
  4747.              System.out.println("\t\t\tReyes");
  4748.              System.out.println("");
  4749.              vote22_5++;
  4750.              break;
  4751.  
  4752.              case 20:
  4753.  
  4754.              System.out.println("\t\t\tLopez");
  4755.              System.out.println("");
  4756.              vote23_5++;
  4757.              default:
  4758.              System.out.println("invalid number");
  4759.              }        //switch    
  4760.  
  4761.  
  4762.  
  4763.          }//ask for councilor
  4764.  
  4765.  
  4766.  
  4767.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  4768.      switch(ans1)
  4769.      {
  4770.      case 2:
  4771.      tem=0;
  4772.      break;
  4773.     }
  4774.  
  4775.          }//for
  4776.  
  4777.     break;
  4778.                 //para sa visayan
  4779.  
  4780.     case 6:
  4781.                 System.out.println("Address: Barangay Visayan Village");
  4782.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  4783.            {
  4784.  
  4785.  
  4786.              switch (ask[i]){
  4787.              case 1:
  4788.              System.out.println("____________________________________");
  4789.              System.out.println("Mayor:            Fernandez");
  4790.              vote6++;
  4791.  
  4792.              break;
  4793.              case 2:
  4794.  
  4795.              System.out.println("____________________________________");
  4796.             System.out.println("Mayor:        Lepiten");
  4797.              vote1_6++;
  4798.              break;
  4799.              default:
  4800.              System.out.println("invalid number");
  4801.          }            
  4802.          }
  4803.  
  4804.  
  4805.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  4806.            {
  4807.  
  4808.  
  4809.              switch (ask[i]){
  4810.              case 1:
  4811.  
  4812.              System.out.println("Vice-Mayor:        Obero   ");
  4813.              vote2_6++;
  4814.              break;
  4815.              case 2:
  4816.  
  4817.              System.out.println("Vice-Mayor:        Nini  ");
  4818.              vote3_6++;
  4819.              break;
  4820.              default:
  4821.              System.out.println("invalid number");
  4822.              }            
  4823.          }
  4824.      //    int
  4825.       tem=10;
  4826.  
  4827.          System.out.println("\n\nCouncilors:"); 
  4828.          for(int balik=0;balik<tem;balik++){
  4829.  
  4830.  
  4831.      //for(w=0;w<10;w++){
  4832.  
  4833.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  4834.  
  4835.            {
  4836.  
  4837.  
  4838.              switch (ask[i]){
  4839.              case 1:
  4840.  
  4841.              System.out.println("\t\t\tClemen");
  4842.              vote4_6++;
  4843.              break;
  4844.              case 2:
  4845.  
  4846.              System.out.println("\t\t\tLarubes");
  4847.              vote5_6++;
  4848.              break;
  4849.  
  4850.              case 3:
  4851.              System.out.println("\t\t\tLee");
  4852.              vote6_6++;
  4853.              break;
  4854.  
  4855.              case 4:
  4856.               System.out.println("\t\t\tPed");
  4857.              vote7_6++;
  4858.              break;
  4859.  
  4860.             case 5:
  4861.  
  4862.              System.out.println("\t\t\tUy");
  4863.  
  4864.              vote8_6++;
  4865.              break;
  4866.  
  4867.              case 6:
  4868.  
  4869.              System.out.println("\t\t\tYu");
  4870.  
  4871.              vote9_6++;
  4872.              break;
  4873.  
  4874.              case 7:
  4875.  
  4876.              System.out.println("\t\t\tTiu");
  4877.  
  4878.              vote10_6++;
  4879.              break;
  4880.  
  4881.              case 8:
  4882.  
  4883.              System.out.println("\t\t\tYee");
  4884.  
  4885.              vote11_6++;
  4886.              break;
  4887.  
  4888.              case 9:
  4889.  
  4890.              System.out.println("\t\t\tHan");
  4891.  
  4892.              vote12_6++;
  4893.              break;
  4894.  
  4895.              case 10:
  4896.  
  4897.              System.out.println("\t\t\tLim");
  4898.  
  4899.              vote13_6++;
  4900.              break;    
  4901.  
  4902.  
  4903.              case 11:
  4904.  
  4905.              System.out.println("\t\t\tRamos");
  4906.  
  4907.              vote14_6++;
  4908.              break;
  4909.  
  4910.              case 12:
  4911.  
  4912.              System.out.println("\t\t\tLagare");
  4913.  
  4914.              vote15_6++;
  4915.              break;
  4916.  
  4917.  
  4918.              case 13:
  4919.  
  4920.              System.out.println("\t\t\tJabican");
  4921.  
  4922.              vote16_6++;
  4923.              break;    
  4924.  
  4925.              case 14:
  4926.  
  4927.              System.out.println("\t\t\tHangad");
  4928.  
  4929.              vote17_6++;
  4930.              break;
  4931.  
  4932.  
  4933.              case 15:
  4934.  
  4935.              System.out.println("\t\t\tCruz");
  4936.  
  4937.              vote18_6++;
  4938.              break;
  4939.  
  4940.  
  4941.              case 16:
  4942.  
  4943.              System.out.println("\t\t\tTan");
  4944.  
  4945.              vote19_6++;
  4946.              break;
  4947.  
  4948.              case 17:
  4949.  
  4950.              System.out.println("\t\t\tPeres");
  4951.  
  4952.              vote20_6++;
  4953.              break;
  4954.  
  4955.              case 18:
  4956.  
  4957.              System.out.println("\t\t\tSanchez");
  4958.  
  4959.              vote21_6++;
  4960.              break;
  4961.  
  4962.              case 19:
  4963.  
  4964.              System.out.println("\t\t\tReyes");
  4965.              System.out.println("");
  4966.              vote22_6++;
  4967.              break;
  4968.  
  4969.              case 20:
  4970.  
  4971.              System.out.println("\t\t\tLopez");
  4972.              System.out.println("");
  4973.              vote23_6++;
  4974.              default:
  4975.              System.out.println("invalid number");
  4976.              }        //switch    
  4977.  
  4978.  
  4979.  
  4980.          }//ask for councilor
  4981.  
  4982.  
  4983.  
  4984.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  4985.      switch(ans1)
  4986.      {
  4987.      case 2:
  4988.      tem=0;
  4989.      break;
  4990.     }
  4991.  
  4992.          }//for
  4993.  
  4994.  
  4995.     break;
  4996.  
  4997.  
  4998.     //            Barangay La Filipina
  4999.     case 7:
  5000.                 System.out.println("Address: Barangay La Filipina");
  5001.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  5002.            {
  5003.  
  5004.  
  5005.              switch (ask[i]){
  5006.              case 1:
  5007.              System.out.println("____________________________________");
  5008.              System.out.println("Mayor:            Fernandez");
  5009.              vote7++;
  5010.  
  5011.              break;
  5012.              case 2:
  5013.  
  5014.              System.out.println("____________________________________");
  5015.             System.out.println("Mayor:        Lepiten");
  5016.              vote1_7++;
  5017.              break;
  5018.              default:
  5019.              System.out.println("invalid number");
  5020.          }            
  5021.          }
  5022.  
  5023.  
  5024.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  5025.            {
  5026.  
  5027.  
  5028.              switch (ask[i]){
  5029.              case 1:
  5030.  
  5031.              System.out.println("Vice-Mayor:        Obero   ");
  5032.              vote2_7++;
  5033.              break;
  5034.              case 2:
  5035.  
  5036.              System.out.println("Vice-Mayor:        Nini  ");
  5037.              vote3_7++;
  5038.              break;
  5039.              default:
  5040.              System.out.println("invalid number");
  5041.              }            
  5042.          }
  5043.      //    int
  5044.       tem=10;
  5045.  
  5046.          System.out.println("\n\nCouncilors:"); 
  5047.          for(int balik=0;balik<tem;balik++){
  5048.  
  5049.  
  5050.      //for(w=0;w<10;w++){
  5051.  
  5052.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  5053.  
  5054.            {
  5055.  
  5056.  
  5057.              switch (ask[i]){
  5058.              case 1:
  5059.  
  5060.              System.out.println("\t\t\tClemen");
  5061.              vote4_7++;
  5062.              break;
  5063.              case 2:
  5064.  
  5065.              System.out.println("\t\t\tLarubes");
  5066.              vote5_7++;
  5067.              break;
  5068.  
  5069.              case 3:
  5070.              System.out.println("\t\t\tLee");
  5071.              vote6_7++;
  5072.              break;
  5073.  
  5074.              case 4:
  5075.               System.out.println("\t\t\tPed");
  5076.              vote7_7++;
  5077.              break;
  5078.  
  5079.             case 5:
  5080.  
  5081.              System.out.println("\t\t\tUy");
  5082.  
  5083.              vote8_7++;
  5084.              break;
  5085.  
  5086.              case 6:
  5087.  
  5088.              System.out.println("\t\t\tYu");
  5089.  
  5090.              vote9_7++;
  5091.              break;
  5092.  
  5093.              case 7:
  5094.  
  5095.              System.out.println("\t\t\tTiu");
  5096.  
  5097.              vote10_7++;
  5098.              break;
  5099.  
  5100.              case 8:
  5101.  
  5102.              System.out.println("\t\t\tYee");
  5103.  
  5104.              vote11_7++;
  5105.              break;
  5106.  
  5107.              case 9:
  5108.  
  5109.              System.out.println("\t\t\tHan");
  5110.  
  5111.              vote12_7++;
  5112.              break;
  5113.  
  5114.              case 10:
  5115.  
  5116.              System.out.println("\t\t\tLim");
  5117.  
  5118.              vote13_7++;
  5119.              break;    
  5120.  
  5121.  
  5122.              case 11:
  5123.  
  5124.              System.out.println("\t\t\tRamos");
  5125.  
  5126.              vote14_7++;
  5127.              break;
  5128.  
  5129.              case 12:
  5130.  
  5131.              System.out.println("\t\t\tLagare");
  5132.  
  5133.              vote15_7++;
  5134.              break;
  5135.  
  5136.  
  5137.              case 13:
  5138.  
  5139.              System.out.println("\t\t\tJabican");
  5140.  
  5141.              vote16_7++;
  5142.              break;    
  5143.  
  5144.              case 14:
  5145.  
  5146.              System.out.println("\t\t\tHangad");
  5147.  
  5148.              vote17_7++;
  5149.              break;
  5150.  
  5151.  
  5152.              case 15:
  5153.  
  5154.              System.out.println("\t\t\tCruz");
  5155.  
  5156.              vote18_7++;
  5157.              break;
  5158.  
  5159.  
  5160.              case 16:
  5161.  
  5162.              System.out.println("\t\t\tTan");
  5163.  
  5164.              vote19_7++;
  5165.              break;
  5166.  
  5167.              case 17:
  5168.  
  5169.              System.out.println("\t\t\tPeres");
  5170.  
  5171.              vote20_7++;
  5172.              break;
  5173.  
  5174.              case 18:
  5175.  
  5176.              System.out.println("\t\t\tSanchez");
  5177.  
  5178.              vote21_7++;
  5179.              break;
  5180.  
  5181.              case 19:
  5182.  
  5183.              System.out.println("\t\t\tReyes");
  5184.  
  5185.              vote22_7++;
  5186.              break;
  5187.  
  5188.              case 20:
  5189.  
  5190.              System.out.println("\t\t\tLopez");
  5191.  
  5192.              vote23_7++;
  5193.              default:
  5194.              System.out.println("invalid number");
  5195.              }        //switch    
  5196.  
  5197.  
  5198.  
  5199.          }//ask for councilor
  5200.  
  5201.  
  5202.  
  5203.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  5204.      switch(ans1)
  5205.      {
  5206.      case 2:
  5207.      tem=0;
  5208.      break;
  5209.     }
  5210.  
  5211.          }//for
  5212.  
  5213.  
  5214.     break;
  5215.  
  5216.     //Barangay Canocotan
  5217.  
  5218.     case 8:
  5219.                 System.out.println("Address: Barangay Canocotan");
  5220.  
  5221.  
  5222.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  5223.            {
  5224.  
  5225.  
  5226.              switch (ask[i]){
  5227.              case 1:
  5228.              System.out.println("____________________________________");
  5229.              System.out.println("Mayor:            Fernandez");
  5230.              vote8++;
  5231.  
  5232.              break;
  5233.              case 2:
  5234.  
  5235.              System.out.println("____________________________________");
  5236.             System.out.println("Mayor:        Lepiten");
  5237.              vote1_8++;
  5238.              break;
  5239.              default:
  5240.              System.out.println("invalid number");
  5241.          }            
  5242.          }
  5243.  
  5244.  
  5245.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  5246.            {
  5247.  
  5248.  
  5249.              switch (ask[i]){
  5250.              case 1:
  5251.  
  5252.              System.out.println("Vice-Mayor:        Obero   ");
  5253.              vote2_8++;
  5254.              break;
  5255.              case 2:
  5256.  
  5257.              System.out.println("Vice-Mayor:        Nini  ");
  5258.              vote3_8++;
  5259.              break;
  5260.              default:
  5261.              System.out.println("invalid number");
  5262.              }            
  5263.          }
  5264.      //    int
  5265.       tem=10;
  5266.  
  5267.          System.out.println("\n\nCouncilors:"); 
  5268.          for(int balik=0;balik<tem;balik++){
  5269.  
  5270.  
  5271.      //for(w=0;w<10;w++){
  5272.  
  5273.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  5274.  
  5275.            {
  5276.  
  5277.  
  5278.              switch (ask[i]){
  5279.              case 1:
  5280.  
  5281.              System.out.println("\t\t\tClemen");
  5282.              vote4_8++;
  5283.              break;
  5284.              case 2:
  5285.  
  5286.              System.out.println("\t\t\tLarubes");
  5287.              vote5_8++;
  5288.              break;
  5289.  
  5290.              case 3:
  5291.              System.out.println("\t\t\tLee");
  5292.              vote6_8++;
  5293.              break;
  5294.  
  5295.              case 4:
  5296.               System.out.println("\t\t\tPed");
  5297.              vote7_8++;
  5298.              break;
  5299.  
  5300.             case 5:
  5301.  
  5302.              System.out.println("\t\t\tUy");
  5303.  
  5304.              vote8_8++;
  5305.              break;
  5306.  
  5307.              case 6:
  5308.  
  5309.              System.out.println("\t\t\tYu");
  5310.  
  5311.              vote9_8++;
  5312.              break;
  5313.  
  5314.              case 7:
  5315.  
  5316.              System.out.println("\t\t\tTiu");
  5317.  
  5318.              vote10_8++;
  5319.              break;
  5320.  
  5321.              case 8:
  5322.  
  5323.              System.out.println("\t\t\tYee");
  5324.  
  5325.              vote11_8++;
  5326.              break;
  5327.  
  5328.              case 9:
  5329.  
  5330.              System.out.println("\t\t\tHan");
  5331.  
  5332.              vote12_8++;
  5333.              break;
  5334.  
  5335.              case 10:
  5336.  
  5337.              System.out.println("\t\t\tLim");
  5338.  
  5339.              vote13_8++;
  5340.              break;    
  5341.  
  5342.  
  5343.              case 11:
  5344.  
  5345.              System.out.println("\t\t\tRamos");
  5346.  
  5347.              vote14_8++;
  5348.              break;
  5349.  
  5350.              case 12:
  5351.  
  5352.              System.out.println("\t\t\tLagare");
  5353.  
  5354.              vote15_8++;
  5355.              break;
  5356.  
  5357.  
  5358.              case 13:
  5359.  
  5360.              System.out.println("\t\t\tJabican");
  5361.  
  5362.              vote16_8++;
  5363.              break;    
  5364.  
  5365.              case 14:
  5366.  
  5367.              System.out.println("\t\t\tHangad");
  5368.  
  5369.              vote17_8++;
  5370.              break;
  5371.  
  5372.  
  5373.              case 15:
  5374.  
  5375.              System.out.println("\t\t\tCruz");
  5376.  
  5377.              vote18_8++;
  5378.              break;
  5379.  
  5380.  
  5381.              case 16:
  5382.  
  5383.              System.out.println("\t\t\tTan");
  5384.  
  5385.              vote19_8++;
  5386.              break;
  5387.  
  5388.              case 17:
  5389.  
  5390.              System.out.println("\t\t\tPeres");
  5391.  
  5392.              vote20_8++;
  5393.              break;
  5394.  
  5395.              case 18:
  5396.  
  5397.              System.out.println("\t\t\tSanchez");
  5398.  
  5399.              vote21_8++;
  5400.              break;
  5401.  
  5402.              case 19:
  5403.  
  5404.              System.out.println("\t\t\tReyes");
  5405.              System.out.println("");
  5406.              vote22_8++;
  5407.              break;
  5408.  
  5409.              case 20:
  5410.  
  5411.              System.out.println("\t\t\tLopez");
  5412.              System.out.println("");
  5413.              vote23_8++;
  5414.              default:
  5415.              System.out.println("invalid number");
  5416.              }        //switch    
  5417.  
  5418.  
  5419.  
  5420.          }//ask for councilor
  5421.  
  5422.  
  5423.  
  5424.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  5425.      switch(ans1)
  5426.      {
  5427.      case 2:
  5428.      tem=0;
  5429.      break;
  5430.     }
  5431.  
  5432.          }//for
  5433.  
  5434.     break;
  5435.  
  5436.     //Barangay San Isidro
  5437.  
  5438.     case 9:
  5439.                 System.out.println("Address: Barangay San Isidro");
  5440.  
  5441.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  5442.            {
  5443.  
  5444.  
  5445.              switch (ask[i]){
  5446.              case 1:
  5447.              System.out.println("____________________________________");
  5448.              System.out.println("Mayor:            Fernandez");
  5449.              vote9++;
  5450.  
  5451.              break;
  5452.              case 2:
  5453.  
  5454.              System.out.println("____________________________________");
  5455.             System.out.println("Mayor:        Lepiten");
  5456.              vote1_9++;
  5457.              break;
  5458.              default:
  5459.              System.out.println("invalid number");
  5460.          }            
  5461.          }
  5462.  
  5463.  
  5464.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  5465.            {
  5466.  
  5467.  
  5468.              switch (ask[i]){
  5469.              case 1:
  5470.  
  5471.              System.out.println("Vice-Mayor:        Obero   ");
  5472.              vote2_9++;
  5473.              break;
  5474.              case 2:
  5475.  
  5476.              System.out.println("Vice-Mayor:        Nini  ");
  5477.              vote3_9++;
  5478.              break;
  5479.              default:
  5480.              System.out.println("invalid number");
  5481.              }            
  5482.          }
  5483.      //    int
  5484.       tem=10;
  5485.  
  5486.          System.out.println("\n\nCouncilors:"); 
  5487.          for(int balik=0;balik<tem;balik++){
  5488.  
  5489.  
  5490.      //for(w=0;w<10;w++){
  5491.  
  5492.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  5493.  
  5494.            {
  5495.  
  5496.  
  5497.              switch (ask[i]){
  5498.              case 1:
  5499.  
  5500.              System.out.println("\t\t\tClemen");
  5501.              vote4_9++;
  5502.              break;
  5503.              case 2:
  5504.  
  5505.              System.out.println("\t\t\tLarubes");
  5506.              vote5_9++;
  5507.              break;
  5508.  
  5509.              case 3:
  5510.              System.out.println("\t\t\tLee");
  5511.              vote6_9++;
  5512.              break;
  5513.  
  5514.              case 4:
  5515.               System.out.println("\t\t\tPed");
  5516.              vote7_9++;
  5517.              break;
  5518.  
  5519.             case 5:
  5520.  
  5521.              System.out.println("\t\t\tUy");
  5522.  
  5523.              vote8_9++;
  5524.              break;
  5525.  
  5526.              case 6:
  5527.  
  5528.              System.out.println("\t\t\tYu");
  5529.  
  5530.              vote9_9++;
  5531.              break;
  5532.  
  5533.              case 7:
  5534.  
  5535.              System.out.println("\t\t\tTiu");
  5536.  
  5537.              vote10_9++;
  5538.              break;
  5539.  
  5540.              case 8:
  5541.  
  5542.              System.out.println("\t\t\tYee");
  5543.  
  5544.              vote11_9++;
  5545.              break;
  5546.  
  5547.              case 9:
  5548.  
  5549.              System.out.println("\t\t\tHan");
  5550.  
  5551.              vote12_9++;
  5552.              break;
  5553.  
  5554.              case 10:
  5555.  
  5556.              System.out.println("\t\t\tLim");
  5557.  
  5558.              vote13_9++;
  5559.              break;    
  5560.  
  5561.  
  5562.              case 11:
  5563.  
  5564.              System.out.println("\t\t\tRamos");
  5565.  
  5566.              vote14_9++;
  5567.              break;
  5568.  
  5569.              case 12:
  5570.  
  5571.              System.out.println("\t\t\tLagare");
  5572.  
  5573.              vote15_9++;
  5574.              break;
  5575.  
  5576.  
  5577.              case 13:
  5578.  
  5579.              System.out.println("\t\t\tJabican");
  5580.  
  5581.              vote16_9++;
  5582.              break;    
  5583.  
  5584.              case 14:
  5585.  
  5586.              System.out.println("\t\t\tHangad");
  5587.  
  5588.              vote17_9++;
  5589.              break;
  5590.  
  5591.  
  5592.              case 15:
  5593.  
  5594.              System.out.println("\t\t\tCruz");
  5595.  
  5596.              vote18_9++;
  5597.              break;
  5598.  
  5599.  
  5600.              case 16:
  5601.  
  5602.              System.out.println("\t\t\tTan");
  5603.  
  5604.              vote19_9++;
  5605.              break;
  5606.  
  5607.              case 17:
  5608.  
  5609.              System.out.println("\t\t\tPeres");
  5610.  
  5611.              vote20_9++;
  5612.              break;
  5613.  
  5614.              case 18:
  5615.  
  5616.              System.out.println("\t\t\tSanchez");
  5617.  
  5618.              vote21_9++;
  5619.              break;
  5620.  
  5621.              case 19:
  5622.  
  5623.              System.out.println("\t\t\tReyes");
  5624.              System.out.println("");
  5625.              vote22_9++;
  5626.              break;
  5627.  
  5628.              case 20:
  5629.  
  5630.              System.out.println("\t\t\tLopez");
  5631.              System.out.println("");
  5632.              vote23_9++;
  5633.              default:
  5634.              System.out.println("invalid number");
  5635.              }        //switch    
  5636.  
  5637.  
  5638.  
  5639.          }//ask for councilor
  5640.  
  5641.  
  5642.  
  5643.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  5644.      switch(ans1)
  5645.      {
  5646.      case 2:
  5647.      tem=0;
  5648.      break;
  5649.     }
  5650.  
  5651.          }//for
  5652.  
  5653.     break;
  5654.  
  5655.  
  5656.     //        Nueva Fuerza    
  5657.     case 10:
  5658.                 System.out.println("Address: Barangay Nueva Fuerza");
  5659.  
  5660.                     ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for mayor."));
  5661.            {
  5662.  
  5663.  
  5664.              switch (ask[i]){
  5665.              case 1:
  5666.              System.out.println("____________________________________");
  5667.              System.out.println("Mayor:            Fernandez");
  5668.              vote10++;
  5669.  
  5670.              break;
  5671.              case 2:
  5672.  
  5673.              System.out.println("____________________________________");
  5674.             System.out.println("Mayor:        Lepiten");
  5675.              vote1_10++;
  5676.              break;
  5677.              default:
  5678.              System.out.println("invalid number");
  5679.          }            
  5680.          }
  5681.  
  5682.  
  5683.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for vice-mayor."));
  5684.            {
  5685.  
  5686.  
  5687.              switch (ask[i]){
  5688.              case 1:
  5689.  
  5690.              System.out.println("Vice-Mayor:        Obero   ");
  5691.              vote2_10++;
  5692.              break;
  5693.              case 2:
  5694.  
  5695.              System.out.println("Vice-Mayor:        Nini  ");
  5696.              vote3_10++;
  5697.              break;
  5698.              default:
  5699.              System.out.println("invalid number");
  5700.              }            
  5701.          }
  5702.      //    int
  5703.       tem=10;
  5704.  
  5705.          System.out.println("\n\nCouncilors:"); 
  5706.          for(int balik=0;balik<tem;balik++){
  5707.  
  5708.  
  5709.      //for(w=0;w<10;w++){
  5710.  
  5711.          ask[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter your vote for councilors. \n(you can only vote for a maximum of ten councilors)"));
  5712.  
  5713.            {
  5714.  
  5715.  
  5716.              switch (ask[i]){
  5717.              case 1:
  5718.  
  5719.              System.out.println("\t\t\tClemen");
  5720.              vote4_10++;
  5721.              break;
  5722.              case 2:
  5723.  
  5724.              System.out.println("\t\t\tLarubes");
  5725.              vote5_10++;
  5726.              break;
  5727.  
  5728.              case 3:
  5729.              System.out.println("\t\t\tLee");
  5730.              vote6_10++;
  5731.              break;
  5732.  
  5733.              case 4:
  5734.               System.out.println("\t\t\tPed");
  5735.              vote7_10++;
  5736.              break;
  5737.  
  5738.             case 5:
  5739.  
  5740.              System.out.println("\t\t\tUy");
  5741.  
  5742.              vote8_10++;
  5743.              break;
  5744.  
  5745.              case 6:
  5746.  
  5747.              System.out.println("\t\t\tYu");
  5748.  
  5749.              vote9_10++;
  5750.              break;
  5751.  
  5752.              case 7:
  5753.  
  5754.              System.out.println("\t\t\tTiu");
  5755.  
  5756.              vote10_10++;
  5757.              break;
  5758.  
  5759.              case 8:
  5760.  
  5761.              System.out.println("\t\t\tYee");
  5762.  
  5763.              vote11_10++;
  5764.              break;
  5765.  
  5766.              case 9:
  5767.  
  5768.              System.out.println("\t\t\tHan");
  5769.  
  5770.              vote12_10++;
  5771.              break;
  5772.  
  5773.              case 10:
  5774.  
  5775.              System.out.println("\t\t\tLim");
  5776.  
  5777.              vote13_10++;
  5778.              break;    
  5779.  
  5780.  
  5781.              case 11:
  5782.  
  5783.              System.out.println("\t\t\tRamos");
  5784.  
  5785.              vote14_10++;
  5786.              break;
  5787.  
  5788.              case 12:
  5789.  
  5790.              System.out.println("\t\t\tLagare");
  5791.  
  5792.              vote15_10++;
  5793.              break;
  5794.  
  5795.  
  5796.              case 13:
  5797.  
  5798.              System.out.println("\t\t\tJabican");
  5799.  
  5800.              vote16_10++;
  5801.              break;    
  5802.  
  5803.              case 14:
  5804.  
  5805.              System.out.println("\t\t\tHangad");
  5806.  
  5807.              vote17_10++;
  5808.              break;
  5809.  
  5810.  
  5811.              case 15:
  5812.  
  5813.              System.out.println("\t\t\tCruz");
  5814.  
  5815.              vote18_10++;
  5816.              break;
  5817.  
  5818.  
  5819.              case 16:
  5820.  
  5821.              System.out.println("\t\t\tTan");
  5822.  
  5823.              vote19_10++;
  5824.              break;
  5825.  
  5826.              case 17:
  5827.  
  5828.              System.out.println("\t\t\tPeres");
  5829.  
  5830.              vote20_10++;
  5831.              break;
  5832.  
  5833.              case 18:
  5834.  
  5835.              System.out.println("\t\t\tSanchez");
  5836.  
  5837.              vote21_10++;
  5838.              break;
  5839.  
  5840.              case 19:
  5841.  
  5842.              System.out.println("\t\t\tReyes");
  5843.              System.out.println("");
  5844.              vote22_10++;
  5845.              break;
  5846.  
  5847.              case 20:
  5848.  
  5849.              System.out.println("\t\t\tLopez");
  5850.              System.out.println("");
  5851.              vote23_10++;
  5852.              default:
  5853.              System.out.println("invalid number");
  5854.              }        //switch    
  5855.  
  5856.  
  5857.  
  5858.          }//ask for councilor
  5859.  
  5860.  
  5861.  
  5862.      ans1=Integer.parseInt(JOptionPane.showInputDialog("Enter another councilor???\n  [1]-continue  [2]-exit"));
  5863.      switch(ans1)
  5864.      {
  5865.      case 2:
  5866.      tem=0;
  5867.      break;
  5868.     }
  5869.  
  5870.          }//for
  5871.  
  5872.                 break;
  5873.  
  5874.  
  5875.                 default:
  5876.              System.out.println("invalid number");
  5877.             }
  5878.             }
  5879.  
  5880.  
  5881.  
  5882.  
  5883.  
  5884.  
  5885.  
  5886.  
  5887.  
  5888.      ans=Integer.parseInt(JOptionPane.showInputDialog("Enter another voter???  [1]-continue  [2]-exit"));
  5889.  
  5890.  
  5891.  
  5892.  
  5893.          }    
  5894.  
  5895.  
  5896.  while(ans==1);
  5897.  
  5898.  
  5899.          System.out.println("");
  5900.          System.out.println("");
  5901.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  5902.            System.out.println("");
  5903.         System.out.println("");
  5904.         System.out.println("");        
  5905.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  5906.         System.out.println(" 같**********************************같");
  5907.         System.out.println(" 같    B R G Y.     A P O K O N 같");
  5908.         System.out.println(" 같**********************************같");
  5909.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  5910.         System.out.println("");    
  5911.         System.out.println("");    
  5912.         System.out.println("Position               Candidate       Votes Received  ");
  5913.         System.out.println("");        
  5914.          System.out.println("Mayor:                  Fernandez              "+vote);
  5915.          System.out.println("            Lepiten                 "+vote1_1);    
  5916.          System.out.println("");    
  5917.          System.out.println("Vice-Mayor:         Obero                  "+vote2_1);
  5918.          System.out.println("                Nini                 "+vote3_1);
  5919.          System.out.println("");
  5920.          System.out.println("Councilors:   ");
  5921.          System.out.println("\t\t    Clemen\t\t"+vote4_1);
  5922.          System.out.println("\t\t    Larubes\t\t"+vote5_1);
  5923.  
  5924.          System.out.println("\t\t    Lee\t\t"+vote6_1);
  5925.          System.out.println("\t\t    Ped\t\t"+vote7_1);
  5926.  
  5927.          System.out.println("\t\t    Uy\t\t"+vote8_1);
  5928.         System.out.println("\t\t    Yu\t\t"+vote9_1);
  5929.         System.out.println("\t\t    Tiu\t\t"+vote10_1);
  5930.         System.out.println("\t\t    Yee\t\t"+vote11_1);
  5931.         System.out.println("\t\t    Han\t\t"+vote12_1);
  5932.         System.out.println("\t\t    Lim\t\t"+vote13_1);
  5933.         System.out.println("\t\t    Ramos\t\t"+vote14_1);
  5934.         System.out.println("\t\t    Lagare\t\t"+vote15_1);
  5935.         System.out.println("\t\t    Jabican\t\t"+vote16_1);
  5936.         System.out.println("\t\t    Hangad\t\t"+vote17_1);
  5937.         System.out.println("\t\t    Cruz\t\t"+vote18_1);
  5938.         System.out.println("\t\t    Tan\t\t"+vote19_1);
  5939.         System.out.println("\t\t    Peres\t\t"+vote20_1);
  5940.         System.out.println("\t\t    Sanches\t\t"+vote21_1);
  5941.         System.out.println("\t\t    Reyes\t\t"+vote22_1);
  5942.         System.out.println("\t\t    Lopez\t\t"+vote23_1);
  5943.         System.out.println("");
  5944.  
  5945.         System.out.println("");
  5946.          System.out.println("");
  5947.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  5948.            System.out.println("");
  5949.         System.out.println("");
  5950.         System.out.println("");        
  5951.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  5952.         System.out.println(" 같**********************************같");
  5953.         System.out.println(" 같    B R G Y.   M A N K I L A M    같");
  5954.         System.out.println(" 같**********************************같");
  5955.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  5956.         System.out.println("");    
  5957.         System.out.println("");    
  5958.         System.out.println("Position               Candidate       Votes Received  ");
  5959.         System.out.println("");        
  5960.          System.out.println("Mayor:                  Fernandez              "+vote2);
  5961.          System.out.println("            Lepiten                 "+vote1_2);    
  5962.          System.out.println("");    
  5963.          System.out.println("Vice-Mayor:         Obero                  "+vote2_2);
  5964.          System.out.println("                Nini                 "+vote3_2);
  5965.          System.out.println("");
  5966.          System.out.println("Councilors:   ");
  5967.          System.out.println("\t\t    Clemen\t\t"+vote4_2);
  5968.          System.out.println("\t\t    Larubes\t\t"+vote5_2);
  5969.  
  5970.          System.out.println("\t\t    Lee\t\t"+vote6_2);
  5971.          System.out.println("\t\t    Ped\t\t"+vote7_2);
  5972.  
  5973.          System.out.println("\t\t    Uy\t\t"+vote8_2);
  5974.         System.out.println("\t\t    Yu\t\t"+vote9_2);
  5975.         System.out.println("\t\t    Tiu\t\t"+vote10_2);
  5976.         System.out.println("\t\t    Yee\t\t"+vote11_2);
  5977.         System.out.println("\t\t    Han\t\t"+vote12_2);
  5978.         System.out.println("\t\t    Lim\t\t"+vote13_2);
  5979.         System.out.println("\t\t    Ramos\t\t"+vote14_2);
  5980.         System.out.println("\t\t    Lagare\t\t"+vote15_2);
  5981.         System.out.println("\t\t    Jabican\t\t"+vote16_2);
  5982.         System.out.println("\t\t    Hangad\t\t"+vote17_2);
  5983.         System.out.println("\t\t    Cruz\t\t"+vote18_2);
  5984.         System.out.println("\t\t    Tan\t\t"+vote19_2);
  5985.         System.out.println("\t\t    Peres\t\t"+vote20_2);
  5986.         System.out.println("\t\t    Sanches\t\t"+vote21_2);
  5987.         System.out.println("\t\t    Reyes\t\t"+vote22_2);
  5988.         System.out.println("\t\t    Lopez\t\t"+vote23_2);
  5989.         System.out.println("");
  5990.  
  5991.         System.out.println("");
  5992.          System.out.println("");
  5993.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  5994.            System.out.println("");
  5995.         System.out.println("");
  5996.         System.out.println("");        
  5997.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  5998.         System.out.println(" 같**********************************************같");
  5999.         System.out.println(" 같    B R G Y.    M A G U G P O  N O R T H 같");
  6000.         System.out.println(" 같**********************************************같");
  6001.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  6002.         System.out.println("");    
  6003.         System.out.println("");    
  6004.         System.out.println("Position               Candidate       Votes Received  ");
  6005.         System.out.println("");        
  6006.          System.out.println("Mayor:                  Fernandez              "+vote3);
  6007.          System.out.println("            Lepiten                 "+vote1_3);    
  6008.          System.out.println("");    
  6009.          System.out.println("Vice-Mayor:         Obero                  "+vote2_3);
  6010.          System.out.println("                Nini                 "+vote3_3);
  6011.          System.out.println("");
  6012.          System.out.println("Councilors:   ");
  6013.          System.out.println("\t\t    Clemen\t\t"+vote4_3);
  6014.          System.out.println("\t\t    Larubes\t\t"+vote5_3);
  6015.  
  6016.          System.out.println("\t\t    Lee\t\t"+vote6_3);
  6017.          System.out.println("\t\t    Ped\t\t"+vote7_3);
  6018.  
  6019.          System.out.println("\t\t    Uy\t\t"+vote8_3);
  6020.         System.out.println("\t\t    Yu\t\t"+vote9_3);
  6021.         System.out.println("\t\t    Tiu\t\t"+vote10_3);
  6022.         System.out.println("\t\t    Yee\t\t"+vote11_3);
  6023.         System.out.println("\t\t    Han\t\t"+vote12_3);
  6024.         System.out.println("\t\t    Lim\t\t"+vote13_3);
  6025.         System.out.println("\t\t    Ramos\t\t"+vote14_3);
  6026.         System.out.println("\t\t    Lagare\t\t"+vote15_3);
  6027.         System.out.println("\t\t    Jabican\t\t"+vote16_3);
  6028.         System.out.println("\t\t    Hangad\t\t"+vote17_3);
  6029.         System.out.println("\t\t    Cruz\t\t"+vote18_3);
  6030.         System.out.println("\t\t    Tan\t\t"+vote19_3);
  6031.         System.out.println("\t\t    Peres\t\t"+vote20_3);
  6032.         System.out.println("\t\t    Sanches\t\t"+vote21_3);
  6033.         System.out.println("\t\t    Reyes\t\t"+vote22_3);
  6034.         System.out.println("\t\t    Lopez\t\t"+vote23_3);
  6035.         System.out.println("");
  6036.  
  6037.             System.out.println("");
  6038.          System.out.println("");
  6039.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6040.            System.out.println("");
  6041.         System.out.println("");
  6042.         System.out.println("");        
  6043.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  6044.         System.out.println(" 같**********************************************같");
  6045.         System.out.println(" 같    B R G Y.    M A G U G P O  S O U T H  같");
  6046.         System.out.println(" 같**********************************************같");
  6047.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  6048.         System.out.println("");    
  6049.         System.out.println("");    
  6050.         System.out.println("Position               Candidate       Votes Received  ");
  6051.         System.out.println("");        
  6052.          System.out.println("Mayor:                  Fernandez              "+vote4);
  6053.          System.out.println("            Lepiten                 "+vote1_4);    
  6054.          System.out.println("");    
  6055.          System.out.println("Vice-Mayor:         Obero                  "+vote2_4);
  6056.          System.out.println("                Nini                 "+vote3_4);
  6057.          System.out.println("");
  6058.          System.out.println("Councilors:   ");
  6059.          System.out.println("\t\t    Clemen\t\t"+vote4_4);
  6060.          System.out.println("\t\t    Larubes\t\t"+vote5_4);
  6061.  
  6062.          System.out.println("\t\t    Lee\t\t"+vote6_4);
  6063.          System.out.println("\t\t    Ped\t\t"+vote7_4);
  6064.  
  6065.          System.out.println("\t\t    Uy\t\t"+vote8_4);
  6066.         System.out.println("\t\t    Yu\t\t"+vote9_4);
  6067.         System.out.println("\t\t    Tiu\t\t"+vote10_4);
  6068.         System.out.println("\t\t    Yee\t\t"+vote11_4);
  6069.         System.out.println("\t\t    Han\t\t"+vote12_4);
  6070.         System.out.println("\t\t    Lim\t\t"+vote13_4);
  6071.         System.out.println("\t\t    Ramos\t\t"+vote14_4);
  6072.         System.out.println("\t\t    Lagare\t\t"+vote15_4);
  6073.         System.out.println("\t\t    Jabican\t\t"+vote16_4);
  6074.         System.out.println("\t\t    Hangad\t\t"+vote17_4);
  6075.         System.out.println("\t\t    Cruz\t\t"+vote18_4);
  6076.         System.out.println("\t\t    Tan\t\t"+vote19_4);
  6077.         System.out.println("\t\t    Peres\t\t"+vote20_4);
  6078.         System.out.println("\t\t    Sanches\t\t"+vote21_4);
  6079.         System.out.println("\t\t    Reyes\t\t"+vote22_4);
  6080.         System.out.println("\t\t    Lopez\t\t"+vote23_4);
  6081.         System.out.println("");
  6082.  
  6083.  
  6084.  
  6085.             System.out.println("");
  6086.          System.out.println("");
  6087.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6088.            System.out.println("");
  6089.         System.out.println("");
  6090.         System.out.println("");        
  6091.         System.out.println(" 같같같같같같같같같같같같같같         " );
  6092.         System.out.println(" 같*************************같");
  6093.         System.out.println(" 같    B R G Y.    M A D A U M 같");
  6094.         System.out.println(" 같*************************같");
  6095.         System.out.println(" 같같같같같같같같같같같같같같               ");
  6096.         System.out.println("");    
  6097.         System.out.println("");    
  6098.         System.out.println("Position               Candidate       Votes Received  ");
  6099.         System.out.println("");        
  6100.          System.out.println("Mayor:                  Fernandez              "+vote5);
  6101.          System.out.println("            Lepiten                 "+vote1_5);    
  6102.          System.out.println("");    
  6103.          System.out.println("Vice-Mayor:         Obero                  "+vote2_5);
  6104.          System.out.println("                Nini                 "+vote3_5);
  6105.          System.out.println("");
  6106.          System.out.println("Councilors:   ");
  6107.          System.out.println("\t\t    Clemen\t\t"+vote4_5);
  6108.          System.out.println("\t\t    Larubes\t\t"+vote5_5);
  6109.  
  6110.          System.out.println("\t\t    Lee\t\t"+vote6_5);
  6111.          System.out.println("\t\t    Ped\t\t"+vote7_5);
  6112.  
  6113.          System.out.println("\t\t    Uy\t\t"+vote8_5);
  6114.         System.out.println("\t\t    Yu\t\t"+vote9_5);
  6115.         System.out.println("\t\t    Tiu\t\t"+vote10_5);
  6116.         System.out.println("\t\t    Yee\t\t"+vote11_5);
  6117.         System.out.println("\t\t    Han\t\t"+vote12_5);
  6118.         System.out.println("\t\t    Lim\t\t"+vote13_5);
  6119.         System.out.println("\t\t    Ramos\t\t"+vote14_5);
  6120.         System.out.println("\t\t    Lagare\t\t"+vote15_5);
  6121.         System.out.println("\t\t    Jabican\t\t"+vote16_5);
  6122.         System.out.println("\t\t    Hangad\t\t"+vote17_5);
  6123.         System.out.println("\t\t    Cruz\t\t"+vote18_5);
  6124.         System.out.println("\t\t    Tan\t\t"+vote19_5);
  6125.         System.out.println("\t\t    Peres\t\t"+vote20_5);
  6126.         System.out.println("\t\t    Sanches\t\t"+vote21_5);
  6127.         System.out.println("\t\t    Reyes\t\t"+vote22_5);
  6128.         System.out.println("\t\t    Lopez\t\t"+vote23_5);
  6129.         System.out.println("");
  6130.  
  6131.  
  6132.             System.out.println("");
  6133.          System.out.println("");
  6134.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6135.            System.out.println("");
  6136.         System.out.println("");
  6137.         System.out.println("");        
  6138.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  6139.         System.out.println(" 같**********************************************같");
  6140.         System.out.println(" 같    B R G Y.    V I S A Y A N  V I L L A G E 같");
  6141.         System.out.println(" 같**********************************************같");
  6142.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  6143.         System.out.println("");    
  6144.         System.out.println("");    
  6145.         System.out.println("Position               Candidate       Votes Received  ");
  6146.         System.out.println("");        
  6147.          System.out.println("Mayor:                  Fernandez              "+vote6);
  6148.          System.out.println("            Lepiten                 "+vote1_6);    
  6149.          System.out.println("");    
  6150.          System.out.println("Vice-Mayor:         Obero                  "+vote2_6);
  6151.          System.out.println("                Nini                 "+vote3_6);
  6152.          System.out.println("");
  6153.          System.out.println("Councilors:   ");
  6154.          System.out.println("\t\t    Clemen\t\t"+vote4_6);
  6155.          System.out.println("\t\t    Larubes\t\t"+vote5_6);
  6156.  
  6157.          System.out.println("\t\t    Lee\t\t"+vote6_6);
  6158.          System.out.println("\t\t    Ped\t\t"+vote7_6);
  6159.  
  6160.          System.out.println("\t\t    Uy\t\t"+vote8_6);
  6161.         System.out.println("\t\t    Yu\t\t"+vote9_6);
  6162.         System.out.println("\t\t    Tiu\t\t"+vote10_6);
  6163.         System.out.println("\t\t    Yee\t\t"+vote11_6);
  6164.         System.out.println("\t\t    Han\t\t"+vote12_6);
  6165.         System.out.println("\t\t    Lim\t\t"+vote13_6);
  6166.         System.out.println("\t\t    Ramos\t\t"+vote14_6);
  6167.         System.out.println("\t\t    Lagare\t\t"+vote15_6);
  6168.         System.out.println("\t\t    Jabican\t\t"+vote16_6);
  6169.         System.out.println("\t\t    Hangad\t\t"+vote17_6);
  6170.         System.out.println("\t\t    Cruz\t\t"+vote18_6);
  6171.         System.out.println("\t\t    Tan\t\t"+vote19_6);
  6172.         System.out.println("\t\t    Peres\t\t"+vote20_6);
  6173.         System.out.println("\t\t    Sanches\t\t"+vote21_6);
  6174.         System.out.println("\t\t    Reyes\t\t"+vote22_6);
  6175.         System.out.println("\t\t    Lopez\t\t"+vote23_6);
  6176.         System.out.println("");
  6177.  
  6178.  
  6179.             System.out.println("");
  6180.          System.out.println("");
  6181.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6182.            System.out.println("");
  6183.         System.out.println("");
  6184.         System.out.println("");        
  6185.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  6186.         System.out.println(" 같***********************************같");
  6187.         System.out.println(" 같    B R G Y.    L A  F I L I P I N A같");
  6188.         System.out.println(" 같***********************************같");
  6189.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  6190.         System.out.println("");    
  6191.         System.out.println("");    
  6192.         System.out.println("Position               Candidate       Votes Received  ");
  6193.         System.out.println("");        
  6194.          System.out.println("Mayor:                  Fernandez              "+vote7);
  6195.          System.out.println("            Lepiten                 "+vote1_7);    
  6196.          System.out.println("");    
  6197.          System.out.println("Vice-Mayor:         Obero                  "+vote2_7);
  6198.          System.out.println("                Nini                 "+vote3_7);
  6199.          System.out.println("");
  6200.          System.out.println("Councilors:   ");
  6201.          System.out.println("\t\t    Clemen\t\t"+vote4_7);
  6202.          System.out.println("\t\t    Larubes\t\t"+vote5_7);
  6203.  
  6204.          System.out.println("\t\t    Lee\t\t"+vote6_7);
  6205.          System.out.println("\t\t    Ped\t\t"+vote7_7);
  6206.  
  6207.          System.out.println("\t\t    Uy\t\t"+vote8_7);
  6208.         System.out.println("\t\t    Yu\t\t"+vote9_7);
  6209.         System.out.println("\t\t    Tiu\t\t"+vote10_7);
  6210.         System.out.println("\t\t    Yee\t\t"+vote11_7);
  6211.         System.out.println("\t\t    Han\t\t"+vote12_7);
  6212.         System.out.println("\t\t    Lim\t\t"+vote13_7);
  6213.         System.out.println("\t\t    Ramos\t\t"+vote14_7);
  6214.         System.out.println("\t\t    Lagare\t\t"+vote15_7);
  6215.         System.out.println("\t\t    Jabican\t\t"+vote16_7);
  6216.         System.out.println("\t\t    Hangad\t\t"+vote17_7);
  6217.         System.out.println("\t\t    Cruz\t\t"+vote18_7);
  6218.         System.out.println("\t\t    Tan\t\t"+vote19_7);
  6219.         System.out.println("\t\t    Peres\t\t"+vote20_7);
  6220.         System.out.println("\t\t    Sanches\t\t"+vote21_7);
  6221.         System.out.println("\t\t    Reyes\t\t"+vote22_7);
  6222.         System.out.println("\t\t    Lopez\t\t"+vote23_7);
  6223.         System.out.println("");
  6224.  
  6225.  
  6226.             System.out.println("");
  6227.          System.out.println("");
  6228.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6229.            System.out.println("");
  6230.         System.out.println("");
  6231.         System.out.println("");        
  6232.         System.out.println(" 같같같같같같같같같같같같같같같같같         " );
  6233.         System.out.println(" 같******************************같");
  6234.         System.out.println(" 같    B R G Y.    C A N O C O T A N같");
  6235.         System.out.println(" 같******************************같");
  6236.         System.out.println(" 같같같같같같같같같같같같같같같같같               ");
  6237.         System.out.println("");    
  6238.         System.out.println("");    
  6239.         System.out.println("Position               Candidate       Votes Received  ");
  6240.         System.out.println("");        
  6241.          System.out.println("Mayor:                  Fernandez              "+vote8);
  6242.          System.out.println("            Lepiten                 "+vote1_8);    
  6243.          System.out.println("");    
  6244.          System.out.println("Vice-Mayor:         Obero                  "+vote2_8);
  6245.          System.out.println("                Nini                 "+vote3_8);
  6246.          System.out.println("");
  6247.          System.out.println("Councilors:   ");
  6248.          System.out.println("\t\t    Clemen\t\t"+vote4_8);
  6249.          System.out.println("\t\t    Larubes\t\t"+vote5_8);
  6250.  
  6251.          System.out.println("\t\t    Lee\t\t"+vote6_8);
  6252.          System.out.println("\t\t    Ped\t\t"+vote7_8);
  6253.  
  6254.          System.out.println("\t\t    Uy\t\t"+vote8_8);
  6255.         System.out.println("\t\t    Yu\t\t"+vote9_8);
  6256.         System.out.println("\t\t    Tiu\t\t"+vote10_8);
  6257.         System.out.println("\t\t    Yee\t\t"+vote11_8);
  6258.         System.out.println("\t\t    Han\t\t"+vote12_8);
  6259.         System.out.println("\t\t    Lim\t\t"+vote13_8);
  6260.         System.out.println("\t\t    Ramos\t\t"+vote14_8);
  6261.         System.out.println("\t\t    Lagare\t\t"+vote15_8);
  6262.         System.out.println("\t\t    Jabican\t\t"+vote16_8);
  6263.         System.out.println("\t\t    Hangad\t\t"+vote17_8);
  6264.         System.out.println("\t\t    Cruz\t\t"+vote18_8);
  6265.         System.out.println("\t\t    Tan\t\t"+vote19_8);
  6266.         System.out.println("\t\t    Peres\t\t"+vote20_8);
  6267.         System.out.println("\t\t    Sanches\t\t"+vote21_8);
  6268.         System.out.println("\t\t    Reyes\t\t"+vote22_8);
  6269.         System.out.println("\t\t    Lopez\t\t"+vote23_8);
  6270.         System.out.println("");
  6271.  
  6272.  
  6273.             System.out.println("");
  6274.          System.out.println("");
  6275.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6276.            System.out.println("");
  6277.         System.out.println("");
  6278.         System.out.println("");        
  6279.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  6280.         System.out.println(" 같***********************************같");
  6281.         System.out.println(" 같    B R G Y.    S A N  I S I D R O 같");
  6282.         System.out.println(" 같***********************************같");
  6283.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  6284.         System.out.println("");    
  6285.         System.out.println("");    
  6286.         System.out.println("Position               Candidate       Votes Received  ");
  6287.         System.out.println("");        
  6288.          System.out.println("Mayor:                  Fernandez              "+vote9);
  6289.          System.out.println("            Lepiten                 "+vote1_9);    
  6290.          System.out.println("");    
  6291.          System.out.println("Vice-Mayor:         Obero                  "+vote2_9);
  6292.          System.out.println("                Nini                 "+vote3_9);
  6293.          System.out.println("");
  6294.          System.out.println("Councilors:   ");
  6295.          System.out.println("\t\t    Clemen\t\t"+vote4_9);
  6296.          System.out.println("\t\t    Larubes\t\t"+vote5_9);
  6297.  
  6298.          System.out.println("\t\t    Lee\t\t"+vote6_9);
  6299.          System.out.println("\t\t    Ped\t\t"+vote7_9);
  6300.  
  6301.          System.out.println("\t\t    Uy\t\t"+vote8_9);
  6302.         System.out.println("\t\t    Yu\t\t"+vote9_9);
  6303.         System.out.println("\t\t    Tiu\t\t"+vote10_9);
  6304.         System.out.println("\t\t    Yee\t\t"+vote11_9);
  6305.         System.out.println("\t\t    Han\t\t"+vote12_9);
  6306.         System.out.println("\t\t    Lim\t\t"+vote13_9);
  6307.         System.out.println("\t\t    Ramos\t\t"+vote14_9);
  6308.         System.out.println("\t\t    Lagare\t\t"+vote15_9);
  6309.         System.out.println("\t\t    Jabican\t\t"+vote16_9);
  6310.         System.out.println("\t\t    Hangad\t\t"+vote17_9);
  6311.         System.out.println("\t\t    Cruz\t\t"+vote18_9);
  6312.         System.out.println("\t\t    Tan\t\t"+vote19_9);
  6313.         System.out.println("\t\t    Peres\t\t"+vote20_9);
  6314.         System.out.println("\t\t    Sanches\t\t"+vote21_9);
  6315.         System.out.println("\t\t    Reyes\t\t"+vote22_9);
  6316.         System.out.println("\t\t    Lopez\t\t"+vote23_9);
  6317.         System.out.println("");
  6318.  
  6319.  
  6320.  
  6321.             System.out.println("");
  6322.          System.out.println("");
  6323.          System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6324.            System.out.println("");
  6325.         System.out.println("");
  6326.         System.out.println("");        
  6327.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같         " );
  6328.         System.out.println(" 같**********************************************같");
  6329.         System.out.println(" 같    B R G Y.    N U E V A   F U E R Z A        같");
  6330.         System.out.println(" 같**********************************************같");
  6331.         System.out.println(" 같같같같같같같같같같같같같같같같같같같같같같같같같               ");
  6332.         System.out.println("");    
  6333.         System.out.println("");    
  6334.         System.out.println("Position               Candidate       Votes Received  ");
  6335.         System.out.println("");        
  6336.          System.out.println("Mayor:                  Fernandez              "+vote10);
  6337.          System.out.println("            Lepiten                 "+vote1_10);    
  6338.          System.out.println("");    
  6339.          System.out.println("Vice-Mayor:         Obero                  "+vote2_10);
  6340.          System.out.println("                Nini                 "+vote3_10);
  6341.          System.out.println("");
  6342.          System.out.println("Councilors:   ");
  6343.          System.out.println("\t\t    Clemen\t\t"+vote4_10);
  6344.          System.out.println("\t\t    Larubes\t\t"+vote5_10);
  6345.  
  6346.          System.out.println("\t\t    Lee\t\t"+vote6_10);
  6347.          System.out.println("\t\t    Ped\t\t"+vote7_10);
  6348.  
  6349.          System.out.println("\t\t    Uy\t\t"+vote8_10);
  6350.         System.out.println("\t\t    Yu\t\t"+vote9_10);
  6351.         System.out.println("\t\t    Tiu\t\t"+vote10_10);
  6352.         System.out.println("\t\t    Yee\t\t"+vote11_10);
  6353.         System.out.println("\t\t    Han\t\t"+vote12_10);
  6354.         System.out.println("\t\t    Lim\t\t"+vote13_10);
  6355.         System.out.println("\t\t    Ramos\t\t"+vote14_10);
  6356.         System.out.println("\t\t    Lagare\t\t"+vote15_10);
  6357.         System.out.println("\t\t    Jabican\t\t"+vote16_10);
  6358.         System.out.println("\t\t    Hangad\t\t"+vote17_10);
  6359.         System.out.println("\t\t    Cruz\t\t"+vote18_10);
  6360.         System.out.println("\t\t    Tan\t\t"+vote19_10);
  6361.         System.out.println("\t\t    Peres\t\t"+vote20_10);
  6362.         System.out.println("\t\t    Sanches\t\t"+vote21_10);
  6363.         System.out.println("\t\t    Reyes\t\t"+vote22_10);
  6364.         System.out.println("\t\t    Lopez\t\t"+vote23_10);
  6365.         System.out.println("");
  6366.  
  6367.  
  6368.  
  6369.         int mayor=vote+vote2+vote3+vote4+vote5+vote6+vote7+vote8+vote9+vote10;
  6370.         int mayor2=vote1_1+vote1_2+vote1_3+vote1_4+vote1_5+vote1_6+vote1_7+vote1_8+vote1_9+vote1_10;
  6371.         int vm=vote2_1+vote2_2+vote2_3+vote2_4+vote2_5+vote2_6+vote2_7+vote2_8+vote2_9+vote2_10;
  6372.         int vm2=vote3_1+vote3_2+vote3_3+vote3_4+vote3_5+vote3_6+vote3_7+vote3_8+vote3_9+vote3_10;
  6373.         int con1=vote4_1+vote4_2+vote4_3+vote4_4+vote4_5+vote4_6+vote4_7+vote4_8+vote4_9+vote4_10;
  6374.         int con2=vote5_1+vote5_2+vote5_3+vote5_4+vote5_5+vote5_6+vote5_7+vote5_8+vote5_9+vote5_10;
  6375.         int con3=vote6_1+vote6_2+vote6_3+vote6_4+vote6_5+vote6_6+vote6_7+vote6_8+vote6_9+vote6_10;
  6376.         int con4=vote7_1+vote7_2+vote7_3+vote7_4+vote7_5+vote7_6+vote7_7+vote7_8+vote7_9+vote7_10;
  6377.         int con5=vote8_1+vote8_2+vote8_3+vote8_4+vote8_5+vote8_6+vote8_7+vote8_8+vote8_9+vote8_10;
  6378.         int con6=vote9_1+vote9_2+vote9_3+vote9_4+vote9_5+vote9_6+vote9_7+vote9_8+vote9_9+vote9_10;
  6379.         int con7=vote10_1+vote10_2+vote10_3+vote10_4+vote10_5+vote10_6+vote10_7+vote10_8+vote10_9+vote10_10;
  6380.         int con8=vote11_1+vote11_2+vote11_3+vote11_4+vote11_5+vote11_6+vote11_7+vote11_8+vote11_9+vote11_10;
  6381.         int con9=vote12_1+vote12_2+vote12_3+vote12_4+vote12_5+vote12_6+vote12_7+vote12_8+vote12_9+vote12_10;
  6382.         int con10=vote13_1+vote13_2+vote13_3+vote13_4+vote13_5+vote13_6+vote13_7+vote13_8+vote13_9+vote13_10;
  6383.         int con11=vote14_1+vote14_2+vote14_3+vote14_4+vote14_5+vote14_6+vote14_7+vote14_8+vote14_9+vote14_10;
  6384.         int con12=vote15_1+vote15_2+vote15_3+vote15_4+vote15_5+vote15_6+vote15_7+vote15_8+vote15_9+vote15_10;
  6385.         int con13=vote16_1+vote16_2+vote16_3+vote16_4+vote16_5+vote16_6+vote16_7+vote16_8+vote16_9+vote16_10;
  6386.         int con14=vote17_1+vote17_2+vote17_3+vote17_4+vote17_5+vote17_6+vote17_7+vote17_8+vote17_9+vote17_10;
  6387.         int con15=vote18_1+vote18_2+vote18_3+vote18_4+vote18_5+vote18_6+vote18_7+vote18_8+vote18_9+vote18_10;
  6388.         int con16=vote19_1+vote19_2+vote19_3+vote19_4+vote19_5+vote19_6+vote19_7+vote19_8+vote19_9+vote19_10;
  6389.         int con17=vote20_1+vote20_2+vote20_3+vote20_4+vote20_5+vote20_6+vote20_7+vote20_8+vote20_9+vote20_10;
  6390.         int con18=vote21_1+vote21_2+vote21_3+vote21_4+vote21_5+vote21_6+vote21_7+vote21_8+vote21_9+vote21_10;
  6391.         int con19=vote22_1+vote22_2+vote22_3+vote22_4+vote22_5+vote22_6+vote22_7+vote22_8+vote22_9+vote22_10;
  6392.         int con20=vote23_1+vote23_2+vote23_3+vote23_4+vote23_5+vote23_6+vote23_7+vote23_8+vote23_9+vote23_10;
  6393.  
  6394.  
  6395.  
  6396.  
  6397.  
  6398.         System.out.println("같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같같        " );
  6399.            System.out.println("");
  6400.         System.out.println("");
  6401.         System.out.println("");        
  6402.         System.out.println(" 같같같같같같같같같같같같같같같같같같같         " );
  6403.         System.out.println(" 같**********************************같");
  6404.         System.out.println(" 같      TOTAL VOTES RECEIVED        같");
  6405.         System.out.println(" 같**********************************같");
  6406.         System.out.println(" 같같같같같같같같같같같같같같같같같같같               ");
  6407.         System.out.println("");    
  6408.         System.out.println("");    
  6409.         System.out.println("Position               Candidate       Votes Received  ");
  6410.         System.out.println("");        
  6411.          System.out.println("Mayor:                  Fernandez              "+mayor);
  6412.          System.out.println("            Lepiten                 "+mayor2);    
  6413.          System.out.println("");    
  6414.          System.out.println("Vice-Mayor:         Obero                  "+vm);
  6415.          System.out.println("                Nini                 "+vm2);
  6416.          System.out.println("");
  6417.          System.out.println("Councilors:   ");
  6418.          System.out.println("\t\t    Clemen\t\t"+con1);
  6419.          System.out.println("\t\t    Larubes\t\t"+con2);
  6420.  
  6421.          System.out.println("\t\t    Lee\t\t"+con3);
  6422.          System.out.println("\t\t    Ped\t\t"+con4);
  6423.  
  6424.          System.out.println("\t\t    Uy\t\t"+con5);
  6425.         System.out.println("\t\t    Yu\t\t"+con6);
  6426.         System.out.println("\t\t    Tiu\t\t"+con7);
  6427.         System.out.println("\t\t    Yee\t\t"+con8);
  6428.         System.out.println("\t\t    Han\t\t"+con9);
  6429.         System.out.println("\t\t    Lim\t\t"+con10);
  6430.         System.out.println("\t\t    Ramos\t\t"+con11);
  6431.         System.out.println("\t\t    Lagare\t\t"+con12);
  6432.         System.out.println("\t\t    Jabican\t\t"+con13);
  6433.         System.out.println("\t\t    Hangad\t\t"+con14);
  6434.         System.out.println("\t\t    Cruz\t\t"+con15);
  6435.         System.out.println("\t\t    Tan\t\t"+con16);
  6436.         System.out.println("\t\t    Peres\t\t"+con17);
  6437.         System.out.println("\t\t    Sanches\t\t"+con18);
  6438.         System.out.println("\t\t    Reyes\t\t"+con19);
  6439.         System.out.println("\t\t    Lopez\t\t"+con20);
  6440.         System.out.println("");
  6441.  
  6442.  
  6443.  
  6444.      /*/condition 1
  6445.          if(vote>voteR){
  6446.  
  6447.              win1=" The Mayor elect is Fernandez";
  6448.              }
  6449.  
  6450.          else if (vote<voteR){
  6451.  
  6452.              win1=" The Mayor elect is Lepiten";
  6453.              }
  6454.  
  6455.  
  6456.  
  6457.  
  6458.          else{
  6459.              win1="DRAW (equal no. of votes received)";
  6460.  
  6461.  
  6462.          }
  6463.  
  6464.              System.out.println(win1);
  6465.  
  6466.  
  6467.          //condition 2
  6468.          if(vote2>voteF){
  6469.  
  6470.              win2=" The Vice-Mayor elect is Obero";
  6471.              }
  6472.  
  6473.          else if(voteF>vote2)
  6474.          {
  6475.              win2=" The Vice-Mayor elect is Nini";
  6476.  
  6477.              }
  6478.  
  6479.          else{
  6480.              win1="DRAW (equal no. of votes received)";
  6481.  
  6482.              }
  6483.  
  6484.              System.out.println(win2);
  6485.  
  6486.  
  6487.          //condition 3
  6488.          if(vote3>voteJ){
  6489.              System.out.println("\n\nCouncilors:");
  6490.              win3="\t\tLarubes";
  6491.  
  6492.          }
  6493.          else if(vote3<voteJ){
  6494.              System.out.println(win3);
  6495.              win3="\t\tClemen";
  6496.  
  6497.  
  6498.          }
  6499.          else{
  6500.              win1="DRAW (equal no. of votes received)";
  6501.  
  6502.              }
  6503.  
  6504.           if(vote4>voteY){
  6505.  
  6506.              win3="\t\tPed";
  6507.  
  6508.          }
  6509.          else if(vote4<voteY){
  6510.              System.out.println(win3);
  6511.              win3="\t\tLee";
  6512.  
  6513.  
  6514.          }
  6515.          else{
  6516.              win1="DRAW (equal no. of votes received)";
  6517.  
  6518.              }
  6519.          if(vote5>voteU){
  6520.              System.out.println("\n\nCouncilors:");
  6521.              win3="\t\tLarubes";
  6522.  
  6523.          }
  6524.          else if(vote5<voteU){
  6525.              System.out.println(win3);
  6526.              win3="\t\tClemen";
  6527.  
  6528.  
  6529.          }
  6530.          else{
  6531.              win1="DRAW (equal no. of votes received)";
  6532.  
  6533.              }
  6534.  
  6535.  
  6536.          if(vote6>vote7){
  6537.              System.out.println("\n\nCouncilors:");
  6538.              win3="\t\tLarubes";
  6539.  
  6540.          }
  6541.          else if(vote6<vote7){
  6542.              System.out.println(win3);
  6543.              win3="\t\tClemen";
  6544.  
  6545.  
  6546.          }
  6547.          else{
  6548.              win1="DRAW (equal no. of votes received)";
  6549.  
  6550.              }
  6551.  
  6552.          if(vote8>vote9){
  6553.  
  6554.              win3="\t\tLarubes";
  6555.  
  6556.          }
  6557.          else if(vote8<vote9){
  6558.              System.out.println(win3);
  6559.              win3="\t\tClemen";
  6560.  
  6561.  
  6562.          }
  6563.          else{
  6564.              win1="DRAW (equal no. of votes received)";
  6565.  
  6566.              }
  6567.  
  6568.          if(vote10>vote11){
  6569.              System.out.println("\n\nCouncilors:");
  6570.              win3="\t\tLarubes";
  6571.  
  6572.          }
  6573.          else if(vote10<vote11){
  6574.              System.out.println(win3);
  6575.              win3="\t\tClemen";
  6576.  
  6577.  
  6578.          }
  6579.          else{
  6580.              win1="DRAW (equal no. of votes received)";
  6581.  
  6582.              }
  6583.          if(vote12>vote13){
  6584.              System.out.println("\n\nCouncilors:");
  6585.              win3="\t\tLarubes";
  6586.  
  6587.          }
  6588.          else if(vote12<vote13){
  6589.              System.out.println(win3);
  6590.              win3="\t\tClemen";
  6591.  
  6592.  
  6593.          }
  6594.          else{
  6595.              win1="DRAW (equal no. of votes received)";
  6596.  
  6597.              }
  6598.          if(vote14>vote15){
  6599.              System.out.println("\n\nCouncilors:");
  6600.              win3="\t\tLarubes";
  6601.  
  6602.          }
  6603.          else if(vote14<vote15){
  6604.              System.out.println(win3);
  6605.              win3="\t\tClemen";
  6606.  
  6607.  
  6608.          }
  6609.          else{
  6610.              win1="DRAW (equal no. of votes received)";
  6611.  
  6612.              }
  6613.          if(vote16>vote17){
  6614.              System.out.println("\n\nCouncilors:");
  6615.              win3="\t\tLarubes";
  6616.  
  6617.          }
  6618.          else if(vote16<vote17){
  6619.              System.out.println(win3);
  6620.              win3="\t\tClemen";
  6621.  
  6622.  
  6623.          }
  6624.          else{
  6625.              win1="DRAW (equal no. of votes received)";
  6626.  
  6627.              }
  6628.          if(vote18>vote19){
  6629.              System.out.println("\n\nCouncilors:");
  6630.              win3="\t\tLarubes";
  6631.  
  6632.          }
  6633.          else if(vote18<vote19){
  6634.              System.out.println(win3);
  6635.              win3="\t\tClemen";
  6636.  
  6637.  
  6638.          }
  6639.          else{
  6640.              win1="DRAW (equal no. of votes received)";
  6641.  
  6642.              }*/
  6643.  
  6644.  
  6645.  
  6646.  
  6647.  
  6648.  
  6649.  
  6650.  
  6651.  
  6652.  
  6653.  }            
  6654.  
  6655.  }
Oct 27 '09 #1
Share this Question
Share on Google+
1 Reply


Dkll
Expert 100+
P: 2,364
Heiya, spynx!

Good job adding your the code in question, feel free to tell us about it, like what are the errors are if any being loaded in your console or else? What happens when you run it?

I am passing through an cannot run your code as of now.

Hope you get it working though...
Nov 10 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.