#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    6
    Rep Power
    0

    Gradebook program


    Hey everyone, I am having a bit of a problem with a program I have to write for class. I have to make a gradebook that determines students' elegibility for sports based on their grades and the number of classes they are taking. Our teacher gave us 6 different sets of letter grades. I have to code my program to output ineligible if they are taking less that 4 classes, have a GPA lower than a 2.0, and they cannot have an "F" in a class. Right now, I am working on the GPA portion of the assignment. I have inputted the 6 student's letter grades in constructers at the end of the program. I have been trying to tell java to make these chars equal to a double value so I can average them together to get the GPA. I keep on getting errors when I try and compile. I was wondering if anyone could look at the code and help me out a bit.

    Also, I have no idea how to add up the number of classes the student is taking. Once I figure this and the GPA portion, I can easily throw it into an if/else method and have it run.

    Thanks for your time!

    Code:
    class Gradebook
    {
    	private char c1;
    	private char c2;
    	private char c3;
    	private char c4;
    	private char c5;
    	private char c6;
    	private char c7;
    	private char A;
    	private char B;
    	private char C;
    	private char D;
    	private char F;
    
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    
    		public void set(char A, double 4.0)
    		public void set(char B, double 3.0)
    		public void set(char C, double 2.0)
    		public void set(char D, double 1.0)
    		public void set(char F, double 0.0)
    		
    		public double getGPA()
    		{
    			return (c1 + c2 + c3 + c4 + c5)/2;
    		}
    	}
    	public Gradebook(char classOne, char classTwo, char classThree)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    	}
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive, char classSix)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    		c6 = classSix;
    	}
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive, char classSix, char classSeven)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    		c6 = classSix;
    		c7 = classSeven;
    	}
    	
    
    	public static void main(String[] args)
    	{
    		Gradebook grades = new Gradebook('B','B','C','B','F');
    		Gradebook grades2 = new Gradebook('C','D','C');
    		Gradebook grades3 = new Gradebook('A','B','A');
    		Gradebook grades4 = new Gradebook('C','B','D','D','D','C');
    		Gradebook grades5 = new Gradebook('A','A','B','A','A','B','A');
    		Gradebook grades6 = new Gradebook('C','D','F','F','D');
    	}
    }
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,625
    Rep Power
    6088
    First: look into using arrays.
    Second: You might want to play with a map to map the grade values to double values.
    Third: I believe it is very bad practice to have your main class instantiate itself. You might want to make a test/driver class to create the gradebook class.
    Fourth: I would instantiate one Gradebook and multiple Student classes (create a Student class).

    Now, to work the GPA: What I would do is create a map to map the grade values, then just give each Student an array of grades (which can be Strings if you want to use A, A-, and A+ instead of just A). Then create an accessor method that simple loops through the array, stores the results, and averages them after comparing to the map.
    Last edited by gimp; October 21st, 2006 at 10:27 PM.
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents
  4. #3
  5. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,625
    Rep Power
    6088
    To expand upon what I wrote before:

    Here is a good tester class.

    JAVA Code:
    public class Test {
     
    	public static void main(String[] args) {
    		// create new gradebook
    		Gradebook g = new Gradebook();
     
    		// add new students
    		g.addStudent(new Student("Bob", {"A", "A-", "B+", "B", "B+"}));
    		g.addStudent(new Student("John", {"C", "C-", "C+", "B", "B+"}));
    		g.addStudent(new Student("Tim", {"A", "C+", "B", "B"}));
    		g.addStudent(new Student("Kid", {"C", "C+", "B"}));
     
    		// check out all the students
    		g.printAllStudents();
     
    		// check to see which are eligible
    		g.printEligibleStudents();
    	}
    }



    Now we make the Gradebook.

    JAVA Code:
    public class Gradebook {
    	private ArrayList<Student> students;
     
    	// constructor
    	public Gradebook() {
    	}
     
    	// add a student
    	public void addStudent(Student s) {
    		ArrayList.add(s);
    	}
     
    	// print all students:
    	// their name
    	// their GPA
    	// how many classes they are taking
    	// and if they have any Fs
    	public void printAllStudents() {
    		for (int i = 0; i < students.size(); i++) {
    			System.out.println(students.get(i));
    		}
    	}
     
    	// print all eligible students
    	public void printEligibleStudents() {
    		for (int i = 0; i < students.size(); i++) {
    			if (/*something*/) {
    				System.out.println(students.get(i));
    			}
    		}
    	}
    }


    Next, Student.

    JAVA Code:
    public class Student {
    	private String[] grades;
    	private String name;
     
    	public student(/*param1, param2*/) {
    		// set parameters
    	}
     
    	public void setGrades(/*param1*/) {
    		// set parameters
    	}
     
    	public boolean isEligible() {
    		// calculate GPA
    		// compare each grade to the map to get a result
     
    		if (/* result == 0.0 */) { return false; }
     
    		// get the average of all the results
     
    		if (/* amount of classes < 4 /*) { return false; }
     
    		if (/* average < 2.0 */) { return false; }
     
    		return true;
    	}
     
     
    	// returns a String representation of the class
    	public String toString() {
    		// create string
    		// make the string talk about:
    		// name
    		// grade
    		// classes
    		// if they have any Fs
     
    		// basically, what was described in Gradebook.printAllStudents()
    	}
    }


    And we may as well have a class for the map

    JAVA Code:
    public class GradeToNumber {
    	public static HashMap h;
    	// figure out the rest yourself
    }
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    6
    Rep Power
    0
    Thanks for the help. However, we didn't learn arrays or maps yet and my teacher doesn't like it if we do stuff he feels that he hasn't covered yet(his teaching abilities are under par). Is there a way to do that without using maps or arrays?
  8. #5
  9. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,625
    Rep Power
    6088
    You can do it without maps, but doing it without arrays is like cutting down a tree with a butter knife.

    The only way you can do it without arrays is with a sh*tload of if statements. The code will make even non-coders cringe in horror when they see it.
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents
  10. #6
  11. No Profile Picture
    rebel with a cause
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2004
    Location
    The Batsh!t Crazy State.
    Posts
    5,814
    Rep Power
    3466
    My kneejerk reaction would be to tell your teacher to stuff it. But that's not advisable if you want to pass his class.

    Quite honestly I'd use the arrays and maps, (provided you actually understand them) and turn the assignment in early, in person and ask the teacher if it's ok. If he doesn't like that you jumped ahead make a mental note to give him a negative evaluation at the end of term and then do the following:

    1. Make static final ints or doubles to contain the value of each letter grade.
    Code:
    public static final int A = 4;
    //or
    public static final double A = 4.0;
    2. Make a method that returns the int or double value of a given char.
    Code:
    public int getPoints(char grade) {
        switch (grade) {
            case 'A':    return A;
            case 'B':    return B;
            //...
        }
        return 0; //you should really throw an exception here but if your teacher doesn't like arrays odds are he won't like exceptions.
    }
    3. Kill that set section, it's not necessary.
    4. Since you're entering a set number of arguments in each constructor just calculate the GPA right there.
    Code:
    public Gradebook(char c1, char c2, char c3) {
        int g1 = getPoints(c1);
        //...
    
        double gpa = (g1 + g2 + g3) / 3.0;
        //...
    }
    Note: this is so not the best way to do this and as gimp said it's like cutting down a tree with a butter knife.
    Dear God. What is it like in your funny little brains? It must be so boring.
  12. #7
  13. Feelin' Groovy
    Devshed Supreme Being (6500+ posts)

    Join Date
    Aug 2001
    Location
    Chicago, IL
    Posts
    10,131
    Rep Power
    5058
    his teaching abilities are under par...
    While that may be true, no evidence of that has been presented so far. I don't see any qualms in restricting students to certain problem domains in entry-level programming classes. Sure, the API often offers easier ways to accomplish an assignment than what is allowed, but it's my impression that most entry-level programming classes are less about learning a particular API than they are about learning general programming principles and practice.

    It boils down to the old "why do I need to learn addition when I have a calculator handy?" argument. It's my humble opinion that it's a good idea to at least learn some fundamentals (e.g., arrays) before moving on to more advanced concepts (e.g., maps, trees, etc.). That way, you have some idea about what to expect as far as reasonable results and how to go about troubleshooting when something doesn't look reasonable.

    If all you need a car for is to get to work and back, learning to drive it is probably "good enough". But if your intention is to build and repair cars, you'll be a better mechanic if you know how cars work and aren't entirely dependent on something else to do the work for you.



    ~
    Yawmark
    class Sig{public static void main(String...args){\u0066or(int
    \u0020$:"v̀ÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray()
    )System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>>
    +(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F)));}}
  14. #8
  15. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,625
    Rep Power
    6088
    Agreed. As I said, having a map or hashmap is merely icing on the cake, but having arrays is more or less a necessity.
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    6
    Rep Power
    0
    Thanks, I'll see what I can do with it when I get back from my tennis match today.
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    6
    Rep Power
    0
    Well, I finished the code and it works properly(about 250 lines >.<). Today we were going over strings and our teacher told us that we need to have the user input the letter grades into the program instead of putting the grades in the constructor. Now I am completely lost because I don't have a clue how to get the user input a character and have it store the values in Gradebook() as the constructors did in my comments at the bottom of the program. Any help would be much appreciated!

    Code:
    class Gradebook
    {
    	private char c1;
    	private char c2;
    	private char c3;
    	private char c4;
    	private char c5;
    	private char c6;
    	private char c7;
    	private double gpa;
    	private double g1;
    	private double g2;
    	private double g3;
    	private double g4;
    	private double g5;
    	private double g6;
    	private double g7;
    	private char fail;
    	private char grade;
    		
    	public double getValue(char grade) 
    	{
    	    switch (grade) 
    	    {
    	        case 'A':    return 4.0;
    	        case 'B':    return 3.0;
    	        case 'C':    return 2.0;
    	        case 'D':    return 1.0;
    	        case 'F':    return 0;
    	    }
    	    return 0;
    	}
    	
    		public Gradebook(char classOne)
    	{
    		c1 = classOne;
    
    		double g1 = getValue(c1);
    		
    		double gpa = (g1) / 1.0;
    		System.out.println("The student's GPA is : " + gpa);
    		if (gpa >= 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    			System.out.println("     Ineligible-Needs to take a minimum of four classes-Taking one");
    		} 
    	}
    
    	public Gradebook(char classOne, char classTwo)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		
    		double gpa = (g1 + g2) / 2.0;
    		System.out.println("The student's GPA is : " + gpa);
    		System.out.println("     Ineligible-Not taking at least four classes");
    		if (gpa < 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c2 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		}
    		
    	}
    
    	public Gradebook(char classOne, char classTwo, char classThree)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		double g3 = getValue(c3);
    		
    		double gpa = (g1 + g2 + g3) / 3.0;
    		System.out.println("The student's GPA is : " + gpa);
    		System.out.println("     Ineligible-Not taking at least four classes");
    		if (gpa < 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c2 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c3 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		}
    		
    	}
    	
    		public Gradebook(char classOne, char classTwo, char classThree, char classFour)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		double g3 = getValue(c3);
    		double g4 = getValue(c4);
    		
    		double gpa = (g1 + g2 + g3 + g4) / 4.0;
    		System.out.println("The student's GPA is : " + gpa);
    		if (gpa < 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c2 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c3 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c4 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		}
    		
    		if (!(c1 == 'F') && !(c2 == 'F') && !(c3 == 'F') && !(c4 == 'F') && gpa >= 2.0){
    				System.out.println("     Eligible");
    			}			
    	}
    
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    		
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		double g3 = getValue(c3);
    		double g4 = getValue(c4);
    		double g5 = getValue(c5);
    		
    		double gpa = (g1 + g2 + g3 + g4 + g5) / 5.0;
    		System.out.println("The student's GPA is : " + gpa);
    		if (gpa < 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c2 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c3 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c4 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c5 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		}
    		
    		if (!(c1 == 'F') && !(c2 == 'F') && !(c3 == 'F') && !(c4 == 'F') && !(c5 == 'F') && gpa >= 2.0){
    				System.out.println("     Eligible");
    			}			
    	}
    	
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive, char classSix)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    		c6 = classSix;
    		
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		double g3 = getValue(c3);
    		double g4 = getValue(c4);
    		double g5 = getValue(c5);
    		double g6 = getValue(c6);
    		
    		double gpa = (g1 + g2 + g3 + g4 + g5 + g6) / 6.0;
    		System.out.println("The student's GPA is : " + gpa);
    		if (gpa < 2.0) {
    			System.out.println("     Ineligible-GPA lower than a 2.0");
    		}
    		
    		if (c1 == 0.0) {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c2 == 'F') {
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c3 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c4 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c5 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		} else if (c6 == 'F'){
    			System.out.println("     Ineligible-Failed one or more classes");
    		}
    		
    		if (!(c1 == 'F') && !(c2 == 'F') && !(c3 == 'F') && !(c4 == 'F') && !(c5 == 'F') && !(c6 == 'F') && gpa >= 2.0){
    				System.out.println("     Eligible");
    			}			
    	}
    	public Gradebook(char classOne, char classTwo, char classThree, char classFour, char classFive, char classSix, char classSeven)
    	{
    		c1 = classOne;
    		c2 = classTwo;
    		c3 = classThree;
    		c4 = classFour;
    		c5 = classFive;
    		c6 = classSix;
    		c7 = classSeven;
    		
    		double g1 = getValue(c1);
    		double g2 = getValue(c2);
    		double g3 = getValue(c3);
    		double g4 = getValue(c4);
    		double g5 = getValue(c5);
    		double g6 = getValue(c6);
    		double g7 = getValue(c7);
    		
    		double gpa = (g1 + g2 + g3 + g4 + g5 + g6 + g7) / 7.0;
    		System.out.println("The student's GPA is : " + gpa);
    			if (gpa < 2.0) {
    				System.out.println("     Ineligible-GPA lower than a 2.0");
    			}
    	
    			if (c1 == 'F') {
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c2 == 'F') {
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c3 == 'F'){
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c4 == 'F'){
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c5 == 'F'){
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c6 == 'F'){
    				System.out.println("     Ineligible-Failed one or more classes");
    			} else if (c7 == 'F'){
    				System.out.println("     Ineligible-Failed one or more classes");
    			}
    			
    		if (!(c1 == 'F') && !(c2 == 'F') && !(c3 == 'F') && !(c4 == 'F') && !(c5 == 'F') && !(c6 == 'F') && !(c7 == 'F') && gpa >= 2.0){
    				System.out.println("     Eligible");
    			}			
    	}
    
    	public static void main(String[] args)
    	{
                  System.out.println( "Type the letter grades for up to seven classes: " );
    
    			
    /*		Gradebook grades = new Gradebook('B','B','C','B','F');
    		Gradebook grades2 = new Gradebook('C','D','F');
    		Gradebook grades3 = new Gradebook('A','B','A');
    		Gradebook grades4 = new Gradebook('C','B','D','D','D','C');
    		Gradebook grades5 = new Gradebook('A','A','B','A','A','B','A');
    		Gradebook grades6 = new Gradebook('C','D','F','F','D');
    */
    	}
    }
  20. #11
  21. No Profile Picture
    rebel with a cause
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2004
    Location
    The Batsh!t Crazy State.
    Posts
    5,814
    Rep Power
    3466
    There's two options.
    1) JOptionPane
    2) Scanner

    Check the api and come back if you have any questions.
    Dear God. What is it like in your funny little brains? It must be so boring.
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    6
    Rep Power
    0
    I am looking to use JOptionPane for the user input. Excuse my ignorance, but what is api?
  24. #13
  25. No Profile Picture
    rebel with a cause
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2004
    Location
    The Batsh!t Crazy State.
    Posts
    5,814
    Rep Power
    3466
    Dear God. What is it like in your funny little brains? It must be so boring.
  26. #14
  27. Feelin' Groovy
    Devshed Supreme Being (6500+ posts)

    Join Date
    Aug 2001
    Location
    Chicago, IL
    Posts
    10,131
    Rep Power
    5058
    Excuse my ignorance, but what is api?
    Application Programming Interface.

    Questions that start with "What is...?" can often be answered very quickly easily with the use of a search engine (e.g., Google).

    ~
    Yawmark
    class Sig{public static void main(String...args){\u0066or(int
    \u0020$:"v̀ÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray()
    )System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>>
    +(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F)));}}
  28. #15
  29. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2005
    Location
    Internet
    Posts
    7,625
    Rep Power
    6088
    Originally Posted by crownjewel82
    I personally prefer DocJar, but each to his (her) own.

    You also have the option to use an applet or a jframe or anything of the sort that will allow you to use a TextField. However, if your prof doesn't want you using arrays (NECESSITY) or maps, I'm fairly sure he'll have a heart attack if you show him an applet...
    Chat Server Project & Tutorial | WiFi-remote-control sailboat (building) | Joke Thread
    “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.”
    Use XXX in a comment to flag something that is bogus but works. Use FIXME to flag something that is bogus and broken. Use TODO to leave yourself reminders. Calling a program finished before all these points are checked off is lazy.
    -Partial Credit: Sun

    If I ask you to redescribe your problem, it's because when you describe issues in detail, you often get a *click* and you suddenly know the solutions.
    Ches Koblents

IMN logo majestic logo threadwatch logo seochat tools logo