William Barnes

Ranch Hand
+ Follow
since Mar 16, 2001
William likes ...
IntelliJ IDE Spring Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by William Barnes

Ya, sorry.  Not really on topic.

Looking for an application which shows every thing from a web page all the way down to the database.  Don't care what drives the front end.  Want Java in the middle. And something simple for the DB, like an in-memory solution maybe.  I just want to see how all the pieces hook together.  

I understand that many solutions don't use Java.  

Thanks
5 years ago
Now that I think about it, I might have been using IntelliJ.

So you are saying that I need to go find the jar for that Junit class, copy it, and include it in my project?  Sorry if it this sounds like I am just repeating your post.

Thanks.
5 years ago
The code works with Eclipse Neon.  

It doesn't understand these imports.  "The import org.junit cannot be resolved"



Do I need to use a different junit library?  What about Neon vs Photon is different?  These are small pieces of code, so I don't have a pom.xml

Thanks.
5 years ago
It is working now, with a different project which was created using Spring Boot v2.x  So don't know what was happening.
5 years ago
This, https://github.com/spring-guides/gs-consuming-rest, which uses Spring Boot v2 works.  So not an Eclipse Photon issue I guess.  
5 years ago
On this web site https://start.spring.io/ I create two different projects.  One with Spring Boot 1.5.16 and the other with 2.0.5  I then use the Import Existing Maven project feature in Eclipse.  Then I attempt to run the (autogenerated) java class which is part of the project.  The project with Spring Boot 1.5.x works, while the one with 2.x gives me "class not found" errors.

Is the issue just that Eclipse Proton doesn't support Spring Boot 2.x yet?  Tried searching for what that version of Eclipse supports, and didn't have any luck.

Thanks
5 years ago
Yes!  This is what I was looking for.  Thanks!

https://github.com/dpaukov/combinatoricslib3

All the feedback was helpful, as always.  You guys/gals rock.
5 years ago
> Is this homework?
Ha!  Ya, I wish.  
5 years ago
They are just using the word "Agile" as a way of piling too much work on you.  You can push back, but if management wants to just pile work on you, it doesn't matter what they call the development process.  Sounds like you should start looking for another job.  Good luck.
5 years ago
Not really a Java specific question, I know.

Given a set of something, how do I generate all combinations?  Is this a smart way of doing this?  My first attempt to would be to have a bunch of loops, I guess.

Example input: 1,2,3,4
Desired output (all pairs, all triplets, ...):
 12,13,14,21,31,41,23,24,32,34,42,43,
 123,...,
 ...,4321

I think I can handle duplicates by using a data structure which will just not allow you duplicates.  Something like this maybe?  

5 years ago
All the Java examples I can find on the google, which use .map() or .filter() also have .stream(), which is another thing that confused me about this code.  

So I think you are correct, that this is JavaScript.  

Thanks!
5 years ago
Off topic, sort of.

Question from an interview.  "What is final, finally and finalize?"
5 years ago

Are the ".map" and ".filter" new to Java 8?  

5 years ago
> Which online test?

The test you take, when you apply for a job at Amazon.  Is there more the one?

5 years ago