Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!

Asif Haciyev

Ranch Hand
+ Follow
since Oct 24, 2018
Asif likes ...
Java Netbeans IDE Oracle
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
9
Given in last 30 days
7
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Asif Haciyev

Here is the stackoverflow question. I think it will be helpful for you.
1 week ago
Thank you Stephan van Hulst.I understand like that: The if-else statement can change the time complexity but as a entire time complexity we have to take worst case time. Is it true? Did I understand right?

But I didn't get just this sentence. Can you explain please?

Stephan van Hulst wrote:because the capacity doubles every time. This logarithm cancels out with the linear cost of copying the elements, and so over many calls to ArrayList.add(), the average time becomes O(1).

1 week ago


I am confused with this code, then I searched to find answer. And I saw this stackoverflow question and still don't know the answer because on the comment is written like this: "the if statement does not change the time complexity in THIS example." (which I mentioned in the question above)
1 week ago
Does "if" statement change the time complexity of function? I saw an example about it and someone commented like this: " the if statement does not change the time complexity in this example." And still I didn't get the exact answer. Now I want to know that is it true for all the functions which include "if" statment or it depends on the "if" 's content.
1 week ago

Campbell Ritchie wrote:Asif Haciyev, please read this, at the top of this forum:-

We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.


You are right.I am sorry for that.

3 weeks ago
I mean like this
3 weeks ago
If you want write your code inside a method just change the return type of append method from int to void
3 weeks ago

Ana Yo wrote:Can you look at the recent code I posted? Idk why it's printing an address instead of the array.


Actually your function returns an array but it doesn't mean that you can print its element just by calling it within System.out.println(); function (I think you have tried like this if not I am sorry)
3 weeks ago

Asif Haciyev wrote:
Is it what you want?

3 weeks ago
3 weeks ago
Don't you have to use third array?
3 weeks ago

Bob Matthews wrote:I connect to the database in Netbeans by right-clicking on the connection to my database shown under the databases heading

When you click on the 'plus' beside databases you get
Java DB
Drivers
and connections e.g. jdbc:derby://localhost:1527/my database

Bob M



Have you checked this link ?