What does OOP stand for?
Type: Posts; User: tripline
What does OOP stand for?
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...
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?
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?
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...
yes.
My original ((number1-number2) + number2)) //parentheses in the wrong place
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.*;...
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...
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{
...
Sorry, I was just trying to get the quickest reply as possible.
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...
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.
how does vals(3, 2, 10, 4); and my int numbers different?
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;...
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)...
you are talking to a 5th grader here. My vocab is that bad :<
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.
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?
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...
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?