Paul McLoughlin

Java

Dedicated to the discussion of the Java programming language a...
Aug 14, 2019 08:28
Better cough up the bucks buddy
Aug 14, 2019 08:27
sheeeitt
Oct 24, 2018 02:28
morn
Oct 24, 2018 02:24
0
Q: Send custom headers RestTemplate

Paul McloughlinI am trying to set a custom header on my RestTemplate requests. I'm using Spring Boot 2.0.6.RELEASE I try setting them like so, inside of my public method HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); headers.add("muh Header", "muh value"); Every...

Oct 24, 2018 02:09
Anyone have any advice
Oct 24, 2018 02:09
I get this error 'HttpHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>>)' has private access in 'java.net.http.HttpHeaders' when trying to make an instance of HttpHeaders headers = new HttpHeaders() inside of a public method
Oct 14, 2018 00:15
ha
Oct 14, 2018 00:15
Are we still talking about generics?
Oct 13, 2018 23:40
Thanks for the resource
Oct 13, 2018 23:40
I will delve into generics for an hour, once I finish up this little code academy project
Oct 13, 2018 23:38
Thanks for the link @Wietlol
Oct 13, 2018 23:37
I like cheat sheets
Oct 13, 2018 23:37
ooh, I like this
Oct 13, 2018 23:36
How would you explain them, this question is for anyone btw
Oct 13, 2018 23:35
ha, but if you were trying to explain them to someone who knows programming but is not familiar with the concept
Oct 13, 2018 23:33
How would you describe them?
Oct 13, 2018 23:29
I think I understand the overall idea, are they similar to Templates in C++?
Oct 13, 2018 23:29
I need to get to grips with Generics
Oct 13, 2018 23:28
I used List<?>
Oct 13, 2018 23:28
Thanks for the replies
Oct 13, 2018 21:58
Any insight would be greatly appreciated.
Oct 13, 2018 21:58
I'm new to Java, I want to write a function that will accept an ArrayList of any type, i've tried `ArrayList<T> someArray` but I keep getting `MyMath.java:7: error: cannot find symbol
public static boolean isEmpty(ArrayList<T> someArray)`
 

Android Talkies

We’re a helpful bunch, but don’t be a help vampire. Our abilit...
Jan 29, 2019 08:51
In Kotlin, is there a way to specify a range of types that a var or val may hold?
 
Aug 1, 2018 09:45
bear with me
Aug 1, 2018 09:45
yes i can
Aug 1, 2018 09:44
try that
Aug 1, 2018 09:43
provide link?
Aug 1, 2018 09:42
it says it's not valid
Aug 1, 2018 09:41
sure
Aug 1, 2018 09:40
it's free.
Aug 1, 2018 09:40
or facebook
Aug 1, 2018 09:39
sign in with google
Aug 1, 2018 09:39
Aug 1, 2018 09:39
I have 10 minutes to spare
Aug 1, 2018 09:38
Okay, shoot me a link friendo
Aug 1, 2018 09:38
it easy
Aug 1, 2018 09:38
try this
Aug 1, 2018 09:38
Aug 1, 2018 09:38
That would be easier
Aug 1, 2018 09:37
if not, I would check the logic of your reducer
Aug 1, 2018 09:37
Okay, are you able to share your screen?
Aug 1, 2018 09:37
Hello
Aug 1, 2018 09:36
Hello
Aug 1, 2018 09:36
yes, try that, then if that works, it will be the logic of the reducer that is the issue, or the details are not being passed to action. check if the are not empty.
Aug 1, 2018 09:36
comment out the reducer logic and add a console.log with the passed arguments from the action.
Aug 1, 2018 09:36
Are you getting any error messages?
Aug 1, 2018 09:36
Link your entire component code that is using the updateImageFile.
Aug 1, 2018 09:36
What does your mapStateToProps and mapDispatchToProps look like?
 
Apr 9, 2018 20:21
peaceeeeeee