Skip to content

Instantly share code, notes, and snippets.

@JorgeOlvera
Created December 1, 2013 16:32
Show Gist options
  • Save JorgeOlvera/7736367 to your computer and use it in GitHub Desktop.
Save JorgeOlvera/7736367 to your computer and use it in GitHub Desktop.
import java.io.*;
import java.util.Scanner;
public class elections2{
public static void main (String[] args) {
Scanner input = new Scanner(System.in);
char candidate;
System.out.println("Please introduce your candidate. Introduce a character ");
candidate = input.nextLine().charAt(0);
if (int regions >= 1 && <= 100){
int[] elArray = new int[regions];
System.out.println("Please introduce candidate N and region M");
2 50
char candidate = input.nextLine().charAt(0);
int regionM = input.nextLine().charAt(3)&&charAt(4)
System.out.println(regionM + 2)
}
else {
System.out.println("Please input an amount between 1 and 100")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment