This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Royal Summers

Greenhorn
+ Follow
since Oct 24, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Royal Summers

Campbell -

Thanks for your input.  Being that I'm new, I'm looking for a simplistic answer and the one I found was the one that was clear and easy for me to understand even if imprecise.

i'll take imprecise if I can understand it over precise but I don't understand it.

Hope this makes sense.

Again, thanks.  I will attempt to understand your response.
22 hours ago
Please disregard this question as I have located an answer that helps me get a better understanding.

"Interfaces allow for multiple inheritances, whereas classes do not."


https://secretofjavaexpert.gr8.com/Secret of Becoming a Java Expert
1 day ago
Junilu -

If I'm understanding, Abstraction in this context sort of means that Interfaces aren't 'tied' to specific code?  Meaning that it can be used by other Objects and/or Programs?

I just found this:

"Interfaces are classes that define method signatures and rely on classes to implement the code inside of them."

"Methods inside of an interface are inherently public. This means the public access modifier is not required."

So, Interfaces are just a 'type' of Class?

1 day ago
I'm reading about Interfaces -- I've read several articles and I'm still not clear.

Can someone explain it in simple terms?

This is the latest article that I read: https://www.javatpoint.com/interface-in-java

I'm lost in the very beginning of the article where it states:

"The interface in Java is a mechanism to achieve abstraction. There can be only abstract methods in the Java interface, not method body. It is used to achieve abstraction and multiple inheritance in Java."

I understand Loose Coupling but clear on Interfaces make this happen.

1 day ago
Knute -

Thank you, thank you, thank you!
2 weeks ago
Junilu -

Thanks for taking the time to respond.

I'm just attempting to understand what .get() does?

I understand what incrementAndGet does but I'm not understanding what 'value' is residing in counter.get()?



Hope this clarifies.
2 weeks ago
Carey -

Thank you so much for your post, examples, and the link!
2 weeks ago
Here's the entire file:




Sorry, no, it isn't Android and I'm using STS...
2 weeks ago
I found an example link that shows the %s although I can't tell exactly what it does:

https://compiler.javatpoint.com/opr/test.jsp?filename=FormatExample
2 weeks ago
So, I'm trying to modify a program per the Lesson requirements and I've determined that I just have to change the operator but I'm trying to gain a deeper understanding.

I've searched and searched the Internet (event tried the Oracle site).  I found some information regarding "%s" but no information that details what %s actually does?

Also, the following line has me in the dark: " newCounter = counter.get() * counter.incrementAndGet();"  How does .get() work; what does it specifically do?




Thanks in advance for any assistance!



2 weeks ago
The Annotation was part of the file as given for the assignment.
2 weeks ago
Sorry for the delayed response.  I've been having a time logging back in.

Yes, it's STS (https://spring.io/tools).
2 weeks ago
Greeting.java





Application.java



The error is triggered on Line 28 of the Controller file:  "The constructor Greeting(long, String) is undefined,"
2 weeks ago
Thanks all for your input.  I wasn't familiar with this Method and just needed to confirm whether or not I had to add a loop or if this Method did it.

Again, thanks for your time and input!
So, I asked if AtomicLong 'loops' due to the fact when I Searched for it on the Internet I saw nothing of it looping which appears that a loop would be required in order to determine if the ID's were odd numbers per the Assignment. So, since I understand how a car works, I would never pose that question but since I had no clue how AtomicLong works then I posed the question just for confirmation.

Hope this clarifies?