getting error on running ant command via cmd

Running ant command in cmd.exe and getting the error in change_list_error file as I am trying to build the files on the local system, error is: svn: The path 'C:\aa\aaa\aaaa\simulator' appears to be part of a Subversion 1.7 or greater working cop...
more »

2017-02-13 19:02 (0) Answers

Hibernate - Manipulating collection post load

We are trying to filter\manipulate Persistent Collection based upon the objects it contains (filter out specific entries). Since this manipulation will be performed on a large number of different objects containing different collections it must be a...
more »

2017-02-13 18:02 (1) Answers

"Double" composition with CompletableFuture

I'm trying to avoid nesting CompletableFuture when combining 2 independent ones with a BiFunction that returns a third one. Currently, using thenCombine() does not cut it: // What I have public CompletableFuture<CompletableFuture<C>> doS...
more »

2017-02-13 14:02 (2) Answers

Java @FinalArgs annotation - how to?

I am transitioning from Scala to Java and miss having final parameters by default. I explored an experimental version of the Lombok library here (background info here) which had files hinting at this functionality: "src/core/lombok/experimental/Fin...
more »

2017-02-12 21:02 (2) Answers

Android Battery Level Detect Issue

I am a new user to stackoverflow, this is my first post, if I have done anything wrong please feel free to tell me, thanks. I am developing an android application to monitor the battery level and change screen brightness, but I were got a weird prob...
more »

2017-02-12 16:02 (1) Answers

How to connect user input to calculation java

I'm a BEGINNER in java. My project is a simple calorie counter. The way it should work: Enter calorie intake number: (user adds number) program subtract users input by 2,000 calories As of now, my program is subtracting the parameter for the foo...
more »

2017-02-12 16:02 (1) Answers

Handling */* content-type in Spring Boot

I am using Spring Controller to handle some requests. I am getting above exception. I have handled application/json, application/xml, etc. But I am not sure about */* and how it should handle in controller. Here is my controller code. @RequestMappin...
more »

2017-02-12 15:02 (1) Answers

Display JSON data on Android using GSON and Volley

Hello I'm new to android programming and trying to learn it. I followed this tutorial and it's working fine however I don't know how to display the records in the listview. The file is from the tutorial is below, package com.kylew...
more »

2017-02-12 09:02 (2) Answers

Connecting Java to MS Access using JCreator

I'm still new to this. But, I'm having a problem inserting data in mt database. I think there's a lot of mistakes going on in my script import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.sql.Connection; import java.sql.Dri...
more »

2017-02-12 09:02 (1) Answers

How to avoid a useless return in a Java method

I have a situation where the return statement nested in two for loops will always be reached, theoretically. The compiler disagrees and requires a return statement outside of the for loop. I'd like to know an elegant way to optimize this method that'...
more »

2017-02-12 05:02 (10) Answers

StanfordCoreNLP parse Annotation to xmi

Hi I have such interesting task. Using Java version of StanfordCoreNLP Parser I parsed text to .xml which you can review here. And now I need to convert that XML to XMI with all annotation dependencies. As I understand I need to parse each sentence ...
more »

2017-02-11 19:02 (0) Answers

Project segregation in Sonar Qube

I have a projects structure like as shown below. Cloud projects folder are having four type projects (eco-projects, evn-projects, met-projects, svn-projects) Each type of projects contains again four different projects, like for example in eco-pr...
more »

2017-02-11 14:02 (0) Answers

Unreachable statement: while true vs if true

How should I understand this Java compiler behaviour? while (true) return; System.out.println("I love Java"); // Err: unreachable statement if (true) return; System.out.println("I hate Java"); // OK. Thanks. EDIT: I find out the point after a f...
more »

2017-02-11 13:02 (3) Answers