Category "java"

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

JCenter deprecation; impact on Gradle and Android

Should I be worried about JCenter being deprecated? Why should I migrate my libraries from JCenter to other Maven repositories? Can I continue to use jcenter()

What's a regex that matches all numbers except 1, 2 and 25?

There's an input of strings that are composed of only digits, i.e., integer numbers. How can I write a regular expression that will accept all the numbers excep

Play recorded audio with chronometer counter

I'm creating a recorder app with chronometer counter, the chronometer is working fine with start record, stop record and stop play. My problem is only with sta

Eclipse (JBoss Developer Studio) not automatically building JPA metamodel classes

I have a Maven project set up that has a parent and two child modules: parent business support All of my JPA entities are in the support module. I've

How to communicate between a dialog and parent Controller in javaFX

I have a MainController and when I press a certain button, a custom dialog (loaded from a custom FXML file) pops up from that MainController class. Now, in that

Caused by: org.flywaydb.core.api.FlywayException: Validate failed. Migration Checksum mismatch for migration 2

I tried to find the solution for the below problem, but none of them worked for me. I am developing Angular + Spring Boot application using MySQL + flyway. Plea