Category "java"

How to create a multiple activity in java

I want to create an app using AIDE, which randomly generates a number and tell if it's even or odd in the background. That is, the main activity xml file shows

kotlin kapt3 KaptBaseError: Error while annotation processing ::For Room Database

I am running into this strange issue in the Room database operation classes. There are lot of Annotations are used, starting from Database then Entity, DAO... N

How to send a string from java client to python server

I'm sending strings to Python server.py from client.java, but there is some error in the string format while receiving into the server. Here are some outputs:

What's the default value for maven-surefire-plugin's forkedProcessTimeoutInSeconds?

forkedProcessTimeoutInSeconds can be set to 0 in order to prevent forked test VMs from being assumed dead after the specified time. What's the default value for

Variable retrieved from json data doesn't seem right

I retrieve data from mysql server and one of the fields is an int value (1 or 0 ) and it's printed right (1 or zero ) but when I try to apply an if condition on

"The POM for ... is missing, no dependency information available" even though it exists in Maven Repository

Problem: A dependency will not download even though I copied it from the Maven Repository. When I hover over the dependency in Eclipse, it warns: "Maven Missi

Can anyone tell how can i put getter and setter on the below code, and what exactly getter and setter do

public class perform{ public static void Main(String args[]) throws IOException { perform obj = new perform(); obj.run(); }

Gc logs not printing

I pass the below value to jvms hosted on Jboss : <option value="-XX:+PrintGCDetails"/> <option v

Is there a way, I can empty the whole JSONObject -- java

I have to populate a json object like this, let say it is named detailJSON: {"amount": "5.00", "ac_no": "123456" } I do it this way: detailJSON.put("amount

Difference between enterAlwaysCollapsed and exitUntilCollapsed scroll flags in coordinate layout

I'm unable to understand difference between these two scroll flags applied to the toolbar or collapsing toolbar, when scroll up and scroll down

Problem with creating Java project in IntelliJ

I've downloaded IntelliJ but for some reason, I cant find a generator for java. I've shown it too a few friends but they cant see whats wrong either, because th

HttpServletRequest unable to get body of request

I'm trying to create a little test servlet (Tomcat 10) to accept simple "POST" messages, however no matter what I've tried the servlet never seems to get the bo

Memory Mapped File location

I am trying to search a list of 268 000 words. The idea is to check whether a word that the user inputs exists in that list. I have accomplished this using a si

Spring Boot, ClassNotDef Error with JaxB, Package -Info.java

I am using AJSC framework in SpringBoot with JaxB implementation. I built the stubs outside the project and copied them inside the project with proper directori

How to scroll smoothly with Selenium WebDriver and/or Sikuli in Java

As part of a test suite measuring FPS for a web application I need to perform a smooth scroll of the web page. That is, the same smoothness as when a user grabs

Creating directories in Java

enter image description hereI'm very new to the Java world so please forgive my ignorance. What is the optimal way to create 1000 New directories in Java? kn

How to turn off 'Enhanced Tracking Protection' for Firefox browser via Selenium WebDriver?

My Selenium Java test script runs on Firefox browser. Recently, it has started failing on applications where 'Enhanced Tracking Protection' is turned on. https:

How to select a value from input type dropdown using selenium webdriver?

I am trying to select a value available in a read only drop down and I have tried so many options but still failing to select the desired option. The drop down

docker stats shows zero memory usage even for running containers

I have two containers ran by Docker Swarm: # docker ps CONTAINER ID IMAGE COMMAND CREATED STA

How to fix javax.net.ssl.SSLHandshakeException even though i have already added the certificate

I am working on a script to control my lights and because I'm lazy the communication is via email (works decently fast I know because it used to run on python b