Category "java"

Is there a neat way of converting lists into maps with the keys set to the elements of original collection and values set to an enum in java

Java newbie... I have a dictionary like so: electronictypeModelsMap = { "laptops" => ["macbook", "thinkpad", "yoga"], "desktops" => ["macmini", "imac", "o

Spring boot mapsId

Hi I using spring boot jpa and I need to use mapsid. There are not so much information about that and I wonder if anyone can help me understand how to use maybe

File pattern was reassigned to file type by 'Android' plugin. You can confirm or revert reassigning pattern

I am developing an app using Flutter 2.10.3 but I assume this issue is not related to Flutter. Since upgrading to Android Studio Bumblebee | 2021.1.1 Patch 2 I

Netbeans jsp, errors not showing

when i write in jsp page using Netbean javaWeb it doenst show error or do completations while coding ive to run it in order to show the errors and it's really a

arrays and methods help needed

i've been puzzling over this for about 5 hours now, I just can't get the errors to stop. am I doing something fundamentally wrong, or misunderstanding something

How to formate or validate date in java like 20992012 or 12122022? [duplicate]

i have to validate date yyyyMMdd or MMddyyyy or ddMMyyyy. if i pass input 20221224, ho to make this is valid? but how can i do this in regex

how to add 'host_name' extension for SNI in java (using jetty)

i am trying in every way to add the SNI to my client (jetty 11.0.9). The server requires me to send host_name, but there is no way with jetty. can anyone do it?

How can I compare User and password input to a text file?

Heyoo! I'm creating a simple login form using the swing package in java and I am having trouble in checking if the username and password is correct or not. this

What is the best practice for solving the number of cases of N searches in Spring JPA?

What is the best practice for solving the number of cases of N searches? There are 3 search conditions for me. There are search conditions of A, B, and C. In th

Proper mapping ( JPA ) composite key

For example i have entities @Entity public class A{ @Id Long Id; ... } @Entity public class B{ @Id Long Id; ... } @Entity @IdClass(ABId.class). public class AB{

Android selector layout of a menu item not working on a checkable item

I am trying to make a favourite item in the menu that can display a hollow heart when unchecked and a solid one when checked However the selector approach is no

stale element reference: while trying to access a drop down button

Have been trying to access the drop down button element using selenium, the page asks for a pincode on opening and after entering it and clicking ok it refreshe

stale element reference: while trying to access a drop down button

Have been trying to access the drop down button element using selenium, the page asks for a pincode on opening and after entering it and clicking ok it refreshe

Android selector layout of a menu item not working on a checkable item

I am trying to make a favourite item in the menu that can display a hollow heart when unchecked and a solid one when checked However the selector approach is no

Spring framework validate response data

I have custom simple endpoint that returns some object (record in my case). I would like to validate correctness of returned output data (i.e., output DTO does

Error while running cucumber feature file via testng

Below is the error i get: [RemoteTestNG] detected TestNG version 7.5.0 [main] INFO org.testng.internal.Utils - [Utils] MethodGroupsHelper.collectMethodsByGroup(

OkHttpClient is not working inside Docker

I'm building server inside docker and trying to use OkHttpClient to get data but it seems not working. When I test with postman, there is nothing logged in serv

Java How to validate characters using a string?

I am working on a java project and was wondering how I could use a string to determine whether or not the chars in an array are valid. The given string is final

Java slenium wont getProperty when i use switch case

here is my simple code for getting a browser public WebDriver initializeDriver() { WebDriver driver; String browser = System.getProperty("bro

rdf4j on IntelliJ IDE?

Extreme beginner here trying to work on RDF. Can rdf4j work on IntelliJ IDEA or it works on Eclipse only? If it can work on IntelliJ, could anyone show me how?