GregBrannon's Profile User Rating: *****

Reputation: 2249 Grandmaster
Group:
Expert
Active Posts:
5,345 (2.59 per day)
Joined:
10-September 10
Profile Views:
23,575
Last Active:
User is offline Feb 15 2016 09:21 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Honda
Dream Kudos:
100
Expert In:
Java
Icon   GregBrannon has not set their status

Posts I've Made

  1. In Topic: how can i return this method?

    Posted 7 Feb 2016

    By convention in Java, method names begin with a lowercase letter.

    Simply return the desired value, which by the method's signature is an int. Something like:

    return newsize; // I'd prefer the variable name newSize

    If you're trying to return something else, you'll have to be more specific about your intentions.

    Edit: Oh, and 'object' should be capitalized unless you've created a class called object.
  2. In Topic: Cant understand what im printing

    Posted 17 Jan 2016

    What don't you understand?
  3. In Topic: Not Sure Why not painting

    Posted 30 Dec 2015

    Welcome to the forum!

    This is a large project, at least in file count. Did you write all of this code and then find it wouldn't paint? If so, you need to work large projects as though they are a collection of small parts, verifying that each small part works as you go. Start with a design that defines the parts, how they work together, etc. Comment and then write each part. Test each part thoroughly as a standalone element. Then begin connecting the parts, testing each connection as you go. Using this approach, when a part or a connection between parts doesn't work as expected, you'll know where to begin looking, because errors in small changes are easier to isolate and correct than one among many changes.

    Now that you have this mass of code, you'll have to either start over as I've suggested (not fun, but possibly the quickest way), OR thoroughly isolate and test each piece until the problem is found. If you're hitting "run" and nothing's happening, start with the main() method. Add test code (print statements?) to see that the main() method is running. If the main() method branches to other code, test that the branches are occurring, then test the function of each branch. Continue this until you find the code that isn't functioning as it should. When you've isolated the problem code but can't solve the problem with it, post it as Mac suggested with a short driver program that demonstrates the malfunction and describe what it doesn't do and how to repeat it.

    Whichever approach you take, good luck!
  4. In Topic: In need of basic boolean help

    Posted 12 Dec 2015

    There aren't many here who know/use the ACM library, so you're not likely to get specific help.

    However, the code you've posted asks for two booleans, now you need logic to do something with them. Are you familiar with if() statements?
  5. In Topic: need help with classes, arrays, methods.

    Posted 6 Dec 2015

    Quote

    i need help in making both points even length when different coordinates are entered

    Points do not have dimensions. What do you mean, "both points even length?" Perhaps you could show an example to better explain.

    Quote

    i need help in calculating the line length for those coordinates.

    There is a formula for calculating the length of a line from the coordinates of the two points that define the line. Are you familiar? Here's one of many explanations I found by searching the web.

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Comments

Page 1 of 1
  1. Photo

    mireille4U Icon

    30 Apr 2015 - 05:44
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address ([email protected]) i will give you my picture.here is my mail address i hope we can move from here.above. Mireille
  2. Photo

    teggr234 Icon

    30 Jun 2014 - 20:52
    Hey greg, will you help me code in java? I know nothing and currently looking for a mentor, I would love to have you mentoring me
  3. Photo

    CoolTech Icon

    24 Feb 2013 - 16:06
    Hi Greg
Page 1 of 1