Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: New here and frustrated with school

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New here and frustrated with school

    I’m currently taking a beginning Java class at my college and I’m having a difficult time with it. I’m hoping I can get some pointers from some people with more advanced knowledge.

    I’m in a small class and with 30 other students and while on the homework assignments I do very well (I have the highest grade in the class with a 98%) I’m having a very difficult time with my exams. My last two exams I scored a 55% and the class average was 70%.

    For me, memorizing things is difficult. It’s easier for me to remember where to find information than memorize it. When I’m programming on the computer, if I have a syntax error it shows me and I can go, “oops, I forgot the semi-colon”, but when it comes to the test I can’t look anything up and I don’t have an IDE telling me I have a syntax error. On the test I’m given a sheet of paper and a pencil. What do you do to practice for these types of exams?

    For example, one of my test questions was this: “Assume that your Triangle class is a subclass of another (unseen) class named Shape. It also uses the interface named Comparable. Finish the first line of the class definition here:”

    At the time I didn’t have the foggiest clue what to write, I knew I needed an Extends and Comparable, but I was missing another keyword, I wrote down:

    Public class Triangle Extends Comparable

    I lost two out of four points for that because it’s actually:

    Public class Triangle Extends Shape implements Comparable

    On another question, worth 6 points, I’m asked to write a comparteTo() method and I do a pretty good job at that, the professor even wrote “very nice”. I still lost two points because when I declared two of my variables I didn’t put “double” in front of them (I completely forgot to do that).

    On a different question I was asked, “Which method do we override if we want to have specialized graphics in a GUI component? Give the entire signature”

    I wrote down,
    protected void Graphics(Graphics e)

    The correct answer is

    protected void paintComponent(Graphics g)

    I had another question like, “Write a static generic method that empties the Stack passed into it, and returns the bottom value in the Stack. While the logic is important, the problem is just as much about working with generics and Stacks.

    On this question I couldn’t remember the syntax at all, so I wrote as close to declaring a generic method as I could remember and wrote in a little pseudo code and I was able to get half the points.

    What do the rest of you do when it comes to exams like these? Do you write all of your programs with pencil and paper in hopes to better retain information? I know I’m not the sharpest tool in the shed, but there has to be better study methods that I can utilize for these types of exams.


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: New here and frustrated with school

    Hi marly, welcome to the forums!

    I don't know if there is any "magic bullet" for becoming fluent with Java's syntax and API. Just write lots of code, I suppose.

    But - perhaps more important - read lots of code: your own and other students, code from books and the internet (including here). Figure out what the code does and think about the code (would you have done it that way? some better way? is it clear? how could it be made clearer?) There's nothing wrong with using all the resources you can (compiler checking, online docs etc) but don't allow them to substitute for thinking and reasoning.

    Don't rush to the keyboard when you have a homework problem: you know you can do these things well, so pose yourself the challenge of answering them away from keyboard (on paper, or in your head). And not sorta-kinda solutions, but detailed.

    Just random ideas... Again, welcome.

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: New here and frustrated with school

    Welcome marly

    The best advice I have is "Try not to worry" and "write more programs"
    Open your ide and write a "Hello world" program. Compile and run.
    Close the ide and open a plain text editor. (Pencil and paper in digital form) Rewrite the same program without the ide.
    Eventually the semicolon on the end will seem as natural as a period at the end of a sentence.
    You just know it needs one because you have ended the statement.

    When you declare a variable, it just makes sense that the type has to be included. How else will the computer know what type it will be?
    Give it some time and practice.

  4. #4
    Junior Member
    Join Date
    Nov 2011
    Location
    Aarhus, Denmark
    Posts
    28
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I think jps had a very good idea, I would do it the other way around though. First try to write the program in notepad, then check up on it in your favourite ide and think about any mistakes you might have made. It's all down to practice

    Rolf

  5. #5
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: New here and frustrated with school

    I ended up switching over to UltraEdit Studio to do my programming. I would have only stayed with UltraEdit, but I liked how the compiler was a little more intergraded with UltraEdit Studio. I can live without autocomplete, but living without syntax highlighting is a little rough.

    They require us to use NetBeans, so I guess I’ll just copy/paste my code into the assignments that I hand in.
    I’ll see how this goes.

Similar Threads

  1. Very Beginner...very frustrated...
    By MassDet in forum Object Oriented Programming
    Replies: 14
    Last Post: March 6th, 2013, 04:27 PM
  2. School Help
    By scot_stuf in forum Java Theory & Questions
    Replies: 4
    Last Post: September 22nd, 2012, 04:31 PM
  3. Frustrated lol.
    By stealthmonkey in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 14th, 2010, 10:02 PM
  4. School Help
    By JavaNewb in forum Loops & Control Statements
    Replies: 1
    Last Post: March 24th, 2010, 09:31 PM
  5. Java program for to implement supermarket menu
    By 5723 in forum AWT / Java Swing
    Replies: 1
    Last Post: April 14th, 2009, 03:14 AM