I have the following fragment: todays_training_fragment.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/ap
I have a requirement to parse some command line arguments in a Java application without using any third party libraries (like Apache CLI or JCommander). I can o
I have a Student class with the following structure: class Student { String name; int age; String grade; } I have a List of Students (l
I'm very new to Android so maybe my question is a bit of a beginner. I want to use the futureTask method in my program, but I really do not know how to use it.
I have a standard form with 2 text boxes to fill and a submit button. The Submit button suppose to work after filling in the first mandatory text box. It works
I'm using Java and I have a Base64 encoded string that I wish to decode and then do some operations to transform. The correct decoded value is obtained in JavaS
Returning a response in SpringBoot project like this: @GetMapping("/users") public ResponseEntity<List<UserDto>> getUsers() { return ResponseEnt
I'm learning Postman and I have an exercise to do. I should create wagers with a sports betting app using Postman. The following POST http://localhost:8080/spor
So i have a simple properties handler java code which prints these loggers . I am using commons logging and log4j2 import org.apache.commons.vfs2.FileObject; im
I have to convert an Int arraylist to String Arraylist so JText in swing can print the numbers of the String ArrayList. private static ArrayLi
I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can I do it?
I need to update one data in my List<Cards>. Class Cards looks like this: public class Cards implements Comparable<Cards>{ private int cardImage, ca
I'm trying to do benchmarking with JMH, the benchmarking result did come out but not perfectly Somehow there's ?? in the numbers, is it the problem with my IDE
I am looking to store sensitive passwords in a java keystore using java keytool's importpass. I am using Oracle java version 1.8.0_212, and cannot upgrade from
I have some property file like: application.properties enable.test.controller=true enable.cross.origin=false I want to enable/disable some functions based on t
I am implementing simple camel application using camel 3.14.0. I start using modelcamelcontext. But there is below exception during setting custom tracer. 2022-
I need to map a JSON string which includes values named long and short: "status": { "long": "Finished", "short": "F", "elapsed": 90 } I tried the foll
I have an 4x4 gridpane object consists of Tiles, extends ImageView, and i want to create method for changing places of connected Tiles by mouse drag and drop. I
I wonder if I do some mistakes because I do not get the content of the webpage displayed on the JFrame. Instead, I only get a white page. The error I got was: j
I have tried creating a button "Menu", and on click it closed the frame that it's on, open a class StartWindow, after that it would use a method "Menu", without