Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!

William Barnes

Ranch Hand
+ Follow
since Mar 16, 2001
William likes ...
IntelliJ IDE Java Spring
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
3
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

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 days 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 days 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 days ago
This, https://github.com/spring-guides/gs-consuming-rest, which uses Spring Boot v2 works.  So not an Eclipse Photon issue I guess. 
1 week 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
1 week 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.
4 weeks ago
> Is this homework?
Ha!  Ya, I wish. 
4 weeks 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.
4 weeks 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? 

4 weeks 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!
4 weeks ago
Off topic, sort of.

Question from an interview.  "What is final, finally and finalize?"
4 weeks ago

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

4 weeks ago
> Which online test?

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

4 months ago
> can download my project and use it.

That should be the least of your worries.  I am sure the company has lots of their own code.  They don't need yours. 

But yes, giving them access to your code on a place like github is a good way of doing it.
4 months ago