I am using Spring Data JPA and Spring Boot. The layout of the application is this main +-- java +-- com/lapots/game/monolith +-- reposi
I want a pass a dto and another value using the @RequestBody in spring. Something like shown in below,(This is my controller code) public User createUser( @Req
Ideally I would like to have a route like this: from("jetty:http://0.0.0.0:8080/{pathParam1}/{pathParam2) So that a consumer would then be able to access the
I am creating a board game in JavaFX using GridPane. There are 7 different animations which could be placed in each grid (cell) of the grid. Initially the gri
For class mapping from hibernate.cfg.xml I use these format below: <mapping class="packageName.className1"/> <mapping class="packageName.className2"
I'm working on a project using CloudSim simulation tool for masters. I want to know how to save the output of the printCloudletList to a csv file in NetBeans. A
I have an app with 100 installs done but I have 2 error on java.lang.NullPointerException; the thing is that when that error came in my device or emulator I cou
Do lambda expressions have any use other than saving lines of code? Are there any special features provided by lambdas which solved problems which weren't easy
I'm new to implementing web services and I'm doing it with jax-rs API using eclipse IDE for java-ee developers 2022. I have written a simple web service that re
I'm trying to solve the problem below from CodeFights. I left my answer in Java after the question. The code works for all the problems, except the last one. Ti
I am trying to connect my Servlet to mysql database using data Source . But whenever I run my servlet I end up getting this exception : java.lang.AbstractMetho
I am trying to build a HashMap which will have integer as keys and objects as values. My syntax is: HashMap<int, myObject> myMap = new HashMap<int, m
Environment: Spring Boot 2.3.1, Java 11 I have tried out a few things already (also comparing with the sample-app by spring), but so far I have been unsuccessfu
I'm trying to send an email using JavaMail through Gmail SMTP Server. This is the code: final String username = "[email protected]"; final String password = "my
I want to print a double value in Java without exponential form. double dexp = 12345678; System.out.println("dexp: "+dexp); It shows this E notation: 1.23456
I have JSON-object which has a dynamic key inside it. I need to get a specific value mapped to this dynamic Key. For example: value "10.00" will be returned for
I'm trying to make it when you click the cameraButton, the graphics show, but when clicked again, it closes. @Override public void paintComponent(Graphics g
I'm a newbie with Hibernate, and I'm writing a simple method to return a list of objects matching a specific filter. List<Foo> seemed a natural return typ
There is a certain library I use in my project. This library has an interface which has about 15 methods. The purpose of this interface is to make it possible
I am creating and staging gcp dataflow template in cloud storage with following command: mvn -X compile exec:java -Dexec.mainClass=main.java.TemplatePipeline -D