Data dodania Pytanie
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
2017-08-06 01:08 Android: Pass information from one activity to another »
I am trying to pass information (more specifically a class with information) from one activity to another. In my application I have a splash screen th...
(3) odpowiedzi
2017-08-05 13:08 In Java is it possible to assign a method reference to a variable whose class has a generic type? »
Let's say we've got the following classes: interface Event { } @FunctionalInterface interface EventListener<T extends Event> { void onEvent(...
(1) odpowiedzi
2017-08-05 13:08 Firebase - Trying to retrieve data of each user into a list »
Each user in my app can send and get friend requests. When the user checks his friends requests, I want the app to go through each user who sent him a...
(2) odpowiedzi
2017-08-05 11:08 Why is Java 8 Optional implemented as final, without Some and None hierarchy? »
In Java, Optional is implemented as public final class Optional<T> { ... } and not as a sealed hierarchy of Some and None. Why is this not the...
(2) odpowiedzi
2017-08-05 08:08 Java encryption/decryption to Ruby »
I have snippet of code in Java responsible for Encryption and Decryption and need to convert in Ruby. Before posting here I gone through 4 Link but no...
(2) odpowiedzi
2017-08-05 06:08 Android - How to make adapters layout stay in position »
I created a simple chat app using firebase but got a little trouble in laying bubble elements for the left and right positions. Left bubble for the ot...
(3) odpowiedzi
2017-08-05 03:08 Where is the constructor String(int, int, char[]) defined? »
I am trying to understand the implementation of Integer.toString(), which looks like this: public static String toString(int i) { if (i == Intege...
(1) odpowiedzi
2017-08-04 17:08 Bitmap.Config.HARDWARE vs Bitmap.Config.RGB_565 »
API 26 adds new option Bitmap.Config.HARDWARE: Special configuration, when bitmap is stored only in graphic memory. Bitmaps in this configuratio...
(0) odpowiedzi