Search:

Type: Posts; User: tripline

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,699

    Re: Teach me about inheritance and extends?

    What does OOP stand for?
  2. Replies
    7
    Views
    1,699

    Re: Teach me about inheritance and extends?

    Not a program just logic. For example
    X inherit y =x is a y
    how do i use this logic when it deals with has-a?
    x inherit y = y has a x? Is that how it works?

    And how would you use contain in an...
  3. Replies
    7
    Views
    1,699

    Re: Teach me about inheritance and extends?

    I need a little bit of help with contain.
    If x is-a y x inherits from y, but does this mean y contain x as well?
  4. Replies
    7
    Views
    1,699

    Teach me about inheritance and extends?

    How does

    x is-a y
    x has-a y
    x wants-a y

    work?
    When do you use has-s in regards to X inherits Y, Y has a X or something like that?
  5. How do I connect 2 method headers to make it recursive???

    When my main method asks for a number, I want that number to be the value of printArray(int a). So the number I enter will run off the script that the printArray method has.

    A good website...
  6. Re: My random generator isn't working. Please help!

    yes.

    My original ((number1-number2) + number2)) //parentheses in the wrong place
  7. Re: My random generator isn't working. Please help!

    Well I feel like an idiot. My parentheses were in the wrong place. I had to rewrite the entire thing to figure it out. Really wish someone would have said syntax error.


    import java.util.*;...
  8. Re: My random generator isn't working. Please help!

    skaterboy - you are saying do a while loop until the random numbers hit between number1 and number2? I guess I can try that.
    Tjstretch - What line of code are you talking about? I did a fair amount...
  9. My random generator isn't working. Please help!

    The random number should be between number1 and number2, an inclusive but after the first random number request, it goes outside my stipulation.

    import java.util.*;
    public class RandomNumber{
    ...
  10. Replies
    4
    Views
    1,276

    Re: Need help with index of coincedence

    Sorry, I was just trying to get the quickest reply as possible.
  11. Replies
    4
    Views
    1,276

    Re: Need help with index of coincedence

    Should I change both strings into array, then check the array index in a for statement? The problem is that there are a lot of scripts that I have not seen before and I am sure there is a particular...
  12. Replies
    4
    Views
    1,276

    Need help with index of coincedence

    Output two similar length strings that have the same letters in their letter count.

    Is there a website I can view to learn to do this? I tried searching but counldn't find anything.
  13. Replies
    5
    Views
    1,657

    Re: Difficulty with method headers.

    how does vals(3, 2, 10, 4); and my int numbers different?
  14. Replies
    5
    Views
    1,657

    Re: Difficulty with method headers.

    public class ttt
    {
    public int vals(int a, int b, int c, int d)
    {
    a=3; b=2; c=10; d=4;
    int highest = a;
    if(b>highest)
    highest = b;...
  15. Replies
    5
    Views
    1,657

    Difficulty with method headers.

    Write only the method headers. Overload a method name, if appropriate.
    a. Calculate the largest of 2, 3, or 4 integer values.

    int val(int a, int b, int c ,int d)

    if (a > b && b > c && b > d)...
  16. Re: Question about object passing to a method? My VOCAB sucks

    you are talking to a 5th grader here. My vocab is that bad :<
  17. Replies
    7
    Views
    1,241

    Re: So Lost with void method

    I have no reason to keep anything from the thread.
    Blue J error = cannot find symbol - method method (int)
    That will be the complete and only error that generate until i fix it.
  18. Replies
    7
    Views
    1,241

    Re: So Lost with void method

    BlueJ only shows me one error at a time, and I am only asking for a hint on my current error, not to fix the entire script for me.

    tle - the for statement already defined i did it not?
  19. Replies
    7
    Views
    1,241

    So Lost with void method

    I get the error cannot find symbol - method method (int)

    public class huh
    {
    public static void method1()
    {
    System.out.println("I wonder who wrote the book on love");
    }
    public static void...
  20. Question about object passing to a method? My VOCAB sucks

    In JAVA, When an object is passed to a method, the object’s data is copied into a method parameter.

    If this is false can you tell me why?
Results 1 to 20 of 20