Data dodania Pytanie
2017-08-11 23:08 Set-Cookie header in Glassfish-5: folding several cookies in one header not working on Firefox (https + HTTP/2.0) »
I noticed that Glassfish-5 web server sends responses with only one Set-Cookie header, which contains several cookies. When I looking with firebug, I ...
(2) odpowiedzi
2017-08-11 18:08 No matching Method/Function for java.security.KeyStore.load(java.io.FileInputStream, string) found »
I'm trying to use the method load() on a java.security.Keystore object in Coldfusion inside a cfscript. Here's my code (not the full code, but enough...
(1) odpowiedzi
2017-08-11 18:08 java.net.MalformedURLException: no protocol: XXX.xml »
What I wanted to do is: Force a style check in my build in my Java maven project. I added this block in my pom.xml: <build> <...
(0) odpowiedzi
2017-08-11 13:08 How to write a recursive method for finding parent and child »
This is to save the details with recursive. Here I want to get the details from the Database and set into my bean with a recursive method. So I can d...
(1) odpowiedzi
2017-08-11 12:08 Why should one use Objects.requireNonNull()? »
Why should one use Objects.requireNonNull() ? I have noted that many Java 8 methods in Oracle JDK use Objects.requireNonNull(), which internally thro...
(5) odpowiedzi
2017-08-11 11:08 Android GeoCoder: search by zip code returns unexpected results »
I want to search with a user input text via Android`s GeoCoder class. Here is my code: Geocoder iGeocoder = new Geocoder(getContext(), Locale.GERMAN)...
(1) odpowiedzi
2017-08-11 00:08 How to validate that a Java 8 Stream has two specific elements in it? »
Let's say I have List<Car> and I want to search through that list to verify that I have both a Civic AND a Focus. If it's an OR it's very easy i...
(3) odpowiedzi
2017-08-10 17:08 Refer to a method through annotation »
Recently I've thought about an issue where you have a method that does some sort of action but it should not be called directly but rather through ano...
(0) odpowiedzi
2017-08-10 15:08 Getting all possible down- and right edge paths in a n x n grid »
Problem 15: Starting in the top left corner of a 2×2 grid, there are 6 routes (without backtracking) to the bottom right corner. How many routes are ...
(2) odpowiedzi
2017-08-10 15:08 Where to set java options in jruby on rails? »
We are working on jruby on rails app. Want to set JRUBY_OPTS or JAVA_OPTS. I can easily use the export to set them on my machine, but I'd like these ...
(1) odpowiedzi
2017-08-10 12:08 How to handle forward slash(/) in java jdbc while querying for a particular value? »
Below is my query which is successfully working in command window but in JDBC I am unable to get the result set for this. select * From Elp_Dealer_Re...
(1) odpowiedzi
2017-08-10 11:08 Right/Left Outer Join in from() and many 'and' with four tables in JOOQ »
I am a noob in JOOQ and need help to translate SQL to JOOQ. So I have this long SQL statement here: Please see this pic for a better insight: Outer J...
(1) odpowiedzi
2017-08-10 10:08 Java - multiple hashmaps pointing to the same key »
I have multiple files which contains key=value string pairs. The keys are the same between the files, but the values differs. Each file can have 1000 ...
(4) odpowiedzi
2017-08-10 09:08 How to return in Java 8 a Map with one entry removed »
Using Java 8 I have a Map<String, String> and I want to use a method of one of the standard libraries to return a Map with a specified entry rem...
(2) odpowiedzi
2017-08-09 21:08 How do I instantiate a java object using JNI (Delphi) »
I am still pretty new to programming in Delphi and I don't know anything about Java. However, I need to write a program using RAD Studio that can read...
(1) odpowiedzi
2017-08-09 12:08 How to retrieve csv data stored in a 'text' field into another table in postgresql? »
For example Please suggest a solution ...
(1) odpowiedzi
2017-08-09 09:08 Deadlock - how does it happen in this example? »
can anyone explain: why do we get a deadlock? how can Gaston enter function bow before Alphonse exit that function? (it should return from function...
(4) odpowiedzi
2017-08-09 08:08 Java Intern function »
I am a bit confused about the intern function. I have the following code: public class InternTest{ public static void main(String args[]){ ...
(3) odpowiedzi
2017-08-09 07:08 static method in class have same signature as default method in interface »
I have below scenario : class C { static void m1() {} } interface I { default void m1() {} } //this will give compilation error : inherited...
(4) odpowiedzi
2017-08-08 19:08 Business Validation Error: Amount must be zero for bundle line items.Error in quickbooks accounting api using coldfusion »
I am trying from 2 days to solve this issue but no success till now.I am working on intuit quickbooks api using coldfusion and java at the backend. I ...
(0) odpowiedzi
2017-08-08 16:08 Java int memory usage »
While I was thinking over the memory usage of various types, I started to become a bit confused of how Java utilizes memory for integers when passed t...
(7) odpowiedzi
2017-08-08 16:08 How can I improve query performance for CLOB and LONG values in Oracle-DB (cx_Oracle vs OJDBC)? »
I have performance problems when querying CLOBs and LONGs of big Oracle database tables. So far, I wrote the following unit tests with cx_Oracle (pyt...
(1) odpowiedzi
2017-08-08 14:08 Why do generic methods and generic types have different type introduction syntax? »
While studying generics, I noticed a difference in type introduction syntax between generic methods and generic types (class or interface) that confus...
(6) odpowiedzi
2017-08-08 11:08 Java HotSpot(TM) Client sharing vs no sharing »
I was looking at my JDK installations and I saw a difference between two installations: java version "1.8.0_121" Java(TM) SE Runtime Environment (bui...
(1) odpowiedzi
2017-08-07 19:08 for loop performance iteration »
The question is, "We might expect method3 to run faster than method2, why is that?" but I have no idea. It seems like both methods do the same amount ...
(2) odpowiedzi
2017-08-07 13:08 cannot compile Java 9 module with --patch-module in IntelliJ IDEA 2017.2.1 »
I am trying to acquaint myself with Java 9 modules and how to define them in IntelliJ. Among other things I want to solve a split package problem usi...
(0) odpowiedzi
2017-08-07 12:08 Setting up SDL2 on Windows Android »
I was following this tutorial to setup SDL2 on Windows Android and I am facing some issues: No SDK tools package includes SDK Manager.exe anymore. A...
(0) odpowiedzi
2017-08-07 11:08 signed zero double equals (as in ==) but Double.compare(double,double) != 0 »
I've encountered something strange regarding comparing double zeros. Depending on how the double zero primitives are initiated the Double.compare(doub...
(2) odpowiedzi
2017-08-07 11:08 Regex to match a digit not followed by a dot(".") »
I have a string string 1(excluding the quotes) -> "my car number is #8746253 which is actually cool" conditions - The number 8746253, could be...
(2) odpowiedzi
2017-08-06 19:08 Why my spring boot gradle project with spring jpa connecting to oracle throwing exceptions? »
RestController is setup and the project is running but it is throwing such errors. without the jpa and spring hibernate configurations its starting fi...
(1) odpowiedzi
2017-08-06 18:08 Understanding RecyclerView.ViewHolder »
I'm having hard time understanding working of view holder, here are my some question that could increase my understanding of viewholder: It is said t...
(4) odpowiedzi
2017-08-06 15:08 Return value based on current month »
I'm using this Java code to get price based on month start and end date. public int getPrice() { java.util.Date today = Calendar.getInst...
(1) odpowiedzi
2017-08-06 09:08 Why I am able to pass a bigger array into a smaller array in Java? »
This might be a silly question but does a Java array accept more than its size? If yes then why do we need ArrayList? I thought that arrays had a fixe...
(4) odpowiedzi
2017-08-06 06:08 Java method call is ambiguous »
there are 2 methods: public static TermsQueryBuilder termsQuery(String name, int... values) { return new TermsQueryBuilder(name, values); } publi...
(3) odpowiedzi
2017-08-06 05:08 JSON Exception - No value for wanted parameter »
I am developing an app on the android platform that gets youtube video search results as a JSON format and puts the title, channel name, and thumbnail...
(1) odpowiedzi