Changeset 205 for liacs/TOOS/assignment1/src
- Timestamp:
- Oct 25, 2010, 7:42:47 PM (14 years ago)
- Location:
- liacs/TOOS/assignment1/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
liacs/TOOS/assignment1/src/Census.java
r204 r205 1 package nl.rickvanderzwet.toos.assignment1; 2 3 import java.util.HashSet; 4 import nl.rickvanderzwet.toos.assignment1.Voter; 5 import org.apache.log4j.BasicConfigurator; 6 import org.apache.log4j.Logger; 7 1 8 public class Census { 9 static Logger logger = Logger.getLogger(Census.class); 2 10 public static void main(String[] args) { 3 System.out.println("Hello, world!"); 11 BasicConfigurator.configure(); 12 HashSet<Voter> voters = new HashSet<Voter>(); 13 voters.add(new Voter(true)); 14 15 logger.info("Hello, world!"); 16 } 17 public boolean census(HashSet<Voter> Voters) { 18 return false; 4 19 } 5 20 } -
liacs/TOOS/assignment1/src/Voter.java
r204 r205 1 package nl.rickvanderzwet.toos.assignment1; 2 3 public class Voter { 4 public Voter() { 5 fvote = null; 6 } 7 public Voter(Boolean vote) { 8 fvote = vote; 9 } 10 11 public Boolean voted() { 12 return fvote; 13 } 14 public Boolean fvote; 15 }
Note:
See TracChangeset
for help on using the changeset viewer.