Category "java"

How to remove Duplicated elements from a List based on Two properties using Java 8 streams?

I'm trying to figure out how to write a stream in Java 8 that removes duplicate records based on a property and a condition, for example: +----+----------------

PE Section Flags

For example Characteristics of section .text is 60000020, seems that is IMAGE_SCN_CNT_CODE 0x00000020 IMAGE_SCN_MEM_EXECUTE 0x20000000 IMAGE_SCN_MEM_READ 0

how to convert a CSV into JSON using Python Or Java. The csv is representation of a nested JSON (Containing array of json objects and nested objects)

I get a csv file like : attrib1_x , attrib1_y , attrib1_z_0_p , attrib1_z_0_c , attrib1_z_1_p , attrib1_z_1_c , attrib2_R , attrib2_K , attrib3 1 , 2 , 100 , 20

SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal

I've just opened the project in netbeans, cleaned and build it then run the project but its showing the following error message. Note:Same project is working fi

How to tackle the Codingbat String-2 oneTwo challenge?

Here is the problem statement: Given a string, compute a new string by moving the first char to come after the next two chars, so "abc" yields "bca". Repeat

android remove data from getintent

I have an activity for handling deeplink which is a browsable activity suppose user clicks a link on another app and my browsable activity handles that intent

How to initialize OutputStream

I am developing an app that controls arduino with bluetooth , everything was working fine with the app , I am able to connect with the arduino bluetooth bridge

How to write a method that takes in a List of Integer, Float, Double and calculate the average?

I am trying to write a method that takes in a list of numeric values - eg List<Integer>, List<Float>, List<Double> etc - and give me the avera

how to print out the user number input with the result instead of showing only result?

I am trying to print out the numbers that user input but i got no idea (example: when user input 2 and 3, it should be show 2+3=5 instead of 5 alone ) also how

Eclipse debugger and remote debugger not working

I m using Eclipse Luna Version: Luna Release (4.4.0) Build id: 20140612-0600-32 BIT I have some breakpoints and remote debugger on which use to work as expected

How to write a method that takes in a List of Integer, Float, Double and calculate the average?

I am trying to write a method that takes in a list of numeric values - eg List<Integer>, List<Float>, List<Double> etc - and give me the avera

maven with JDK11: javac: invalid flag: --release

I'm trying to set up a simple maven project with java 11. As I want to keep JAVA_HOME to be version 8, I'm using maven-toolchains-plugin to make maven use jdk11

Consider defining a bean named 'couchbaseRepositoryOperationsMapping' in your configuration. Spring Boot

Any help appreciated ! I have a spring boot application to be connected to couchbase with following details Repository interface @Repository public interf

JAX-RS jersey ExceptionMapper: How to know the method who threw the exception

Im using JAX-RS jersey ExceptionMapper, and I'm wondering if there is a way to know inside the method toResponse(), which method (from the API) threw the except

Actions Selenium Java mouse action drag and drop not working when cursor type changes after clickandhold

Actions Selenium Java mouse action drag and drop not working when cursor type changes after clickandhold Use case: Mouse cursor type: Pointer Move to source ele

Unable to debug a Spring Boot App. The breakpoints always escape

Here's my Spring Boot config @SpringBootApplication public class ServicesApplication { public static void main(String[] args) { SpringApplication.

How to fix Java VM WebConnect Error?

How do you fix this error, "A Java Virtual Machine is requrired to use WebConnect applets.". Java is installed and works fine at the java test page. For this ap

How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B}") on Java 9?

This exception occurs in a wide variety of scenarios when running an application on Java 9. Certain libraries and frameworks (Spring, Hibernate, JAXB) are parti

Porting from Java 8 to 11: com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl not found, how to change implementation?

I'm trying to port an old Java 8 webapp containing JAX-WS based webservices to Java 11 and Tomcat 9 on Windows 10. Note that this app is not using Maven or any

Send multiple values between two activities

Hi I´m just starting to learn how to use Android Studio. And I want to try to send the values of the choices the user makes from one activity to the other