java Questions
3
Solved
I have an Android app with 9 buttons. This app runs on 2.36 and is the only app on the device (or at least the only app we let the user use - we ship the device with our code preinstalled as part o...
Bannerman asked 9/9, 2014 at 15:16
5
Solved
I have been looking and searching a lot for this question. I'm really stupid when it comes to using the JAVA Calendar class.
Could anybody please help me to show a simple way of how to get the cur...
4
In some system I have to operate on dates which may have limited precission (like month and year only or year only), e.g. "2001" or "January 2011". I need to know not only date, but the presission ...
4
Solved
String temp_date="07/28/2011 11:06:37 AM";
Date date = new Date(temp_date); //Depricated
SimpleDateFormat sdf = new SimpleDateFormat("MMM-dd-yyyy hh:mm:ss");
String comp_date= sdf.format(date);
...
5
I have a docker image called myImageName:latest, which I use in my application.
I want to write an integration test for my application, therefore I want to use the TestContainer package. When I run...
Winebibber asked 12/5, 2021 at 15:2
2
Solved
In order to work with Jaxb, I need to have a normal java.io.File Object. As I do not want to have legacy code in a quite new project, I want to use java.nio.file.Path objects.
As gradle resolves d...
5
Solved
I downloaded android studio latest version Hedgehog, and I found it strange that there is no longer an option to select JAVA languages on the new project screen. Is this a bug? did I do something w...
Mineralize asked 10/2 at 12:26
2
Solved
I'd love to use this:
@Getter
@ToString
@RequiredArgsConstructor(onConstructor_ = {@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)})
private static class RestErrorObject {
private final Stri...
5
Solved
Let's say I have stored a bunch of holidays in my database.
What I need to do is find out which is next work day excluding Saturdays and the public holidays defined in the database.
eg.
Let's sa...
Stertorous asked 9/2, 2012 at 9:20
2
Solved
I have a rabbit queue with messages for consuming. I also have a listener that can fail. The queue is configured with a dead letter exchange (along with a dead letter queue). What I want is to see ...
Constitutive asked 19/11, 2015 at 17:24
3
Solved
As title, How to Calculate Fingerprint From SSH RSA Public Key in Java?
I got an rsaPublicKey object from sample.pub and I calculated the fingerprint by using library Apache Commons Codec
DigestUt...
Antirachitic asked 27/6, 2018 at 9:57
4
Solved
I am new to Java Projects in Visual Studio Code. This is mainly for my school project. I was setting up Gradle for Java according to YouTube videos and follows the step. I just simply installed the...
Marquardt asked 22/7, 2023 at 13:56
10
I made a new Java file in Gedit.
When I open it in Eclipse (CTRL + SHIFT + F), it does not format the code.
(CTRL + SHIFT + F) still formats other Java files (which I also did not create in Ecl...
Impasse asked 17/7, 2014 at 17:5
5
I wanted to move my project into Android Studio and when I was running the simulator, the project was running fine. Since I updated Android Studio, the simulator has the error that the Gradle versi...
Emeldaemelen asked 27/4, 2023 at 19:0
1
I’m looking for a way to find the HTTP version of incoming request in spring webflux netty server
I cannot find any method in ServerWebExchange to get this information.
Spring servlet has some impl...
Bibby asked 11/3, 2021 at 4:11
4
After upgrading my code from Java 17 and Spring-boot 3.1.3 to Java 21 and String-boot 3.2.0, I've started to see errors like the ones below, when calling the REST APIs:
UPDATE: After running some m...
Dyslexia asked 10/12, 2023 at 18:34
5
Solved
When I change a setting in a window like in the screenshot below, where are those settings actually stored?
Bonus: Is there any way, using Java, Eclipse RCP etc, to access the settings programmati...
Carbamate asked 2/7, 2013 at 17:27
4
Solved
I have 2 activities with a separate NavHostFragment which hosts 3 fragments, these 3 fragments are then displayed in my activity's layout ContainerView.
Note: My 2 activities have the same name and...
Pestilential asked 10/9, 2022 at 10:37
3
I have an EJB timer schedule in a singleton EJB running inside a Wildfly 10.10:
@Singleton
@Startup
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
public class MySingletonBean {
public m...
Sinasinai asked 25/10, 2017 at 4:58
3
I'm trying to add the --platform=linux/amd64 flag to my dockerfile's FROM statement. I need to do this because I'm working on an m1 laptop and the default architecture (linux/arm64/v8) is not compa...
Bombazine asked 18/1, 2022 at 10:45
2
Solved
Currently using Spring Boot 3.1 with the reactive WebClient configured like this:
@Configuration
public class MyConfig {
@Bean
WebClient webClient() {
ExchangeStrategies strategies = ExchangeSt...
Sushi asked 29/1 at 9:39
1
I have a SearchView within a Toolbar, that sits up above a RecyclerView list of CardViews. The SearchView works correctly to filter the list based on text inputs. However, the code in the ListAdapt...
Merlinmerlina asked 1/10 at 1:56
4
Solved
I have been trying to get the integrated Gradle buildship to work with Eclipse, but there is always something screwy causing errors that only an expert could figure out, so here I am. My code is im...
Quinquennial asked 2/7, 2017 at 17:20
5
Solved
I'm having issues generating the random number each time I run through the do-while loop in main. When I remove the do - while statement the if statement works fine and seems to generate a random r...
3
The following code gives same output with or without the close() call on the Scanner.
import java.util.Scanner;
class CheckPassFail {
// Write a program called CheckPassFail which prints "P...
Brachial asked 11/3, 2015 at 0:23
© 2022 - 2024 — McMap. All rights reserved.