I'm having some problems understanding how the recursion works and i have this question asking me to print a diamond pattern using recursion. after a while i got to something close to the solution i think but my output is this:
I have sso configured for my application with keycloak and I wish to do single logout. When I call my endpoint for single logout /slo, I got this from the response:
Note: Since your browser does not support JavaScript, you must press the Continue...
I am developing rest APIs in Spring Boot. I am able to do CRUD operations and postman gives correct responses, but when I add Spring Security username and password Postman gives 401 Unauthorized.
I have provided a spring boot security username and...
I tried to print a PDF document from Java using PDFRenderer and ICEpdf. In both cases some of the text came out rotated in 180 degrees while the images stayed correct. With PDFREndere all the text is rotated and in ICEpdf only some of the lines. Any...
My Eclipse worked fine a couple of days ago before a Windows update. Now I get error messages whenever I'm trying to do anything in Eclipse. Just a simple program as this will display a bunch of error messages:
I am using Java Sound to read Audio Stream on my laptop to converse with a bot but it's taking the sound from response of the bot as part of the audio stream, this happens when I am using my device speaker and microphone and works well when I use a...
I'm having a problem with webservlet. This is my first project and i don't know what happend but when i start project in server i can't go to /helloworld althought i can connect to my main url this is my class
I'm currently developing a Java application where I need to dynamically update the contents of a configuration file (env.properties) while the application is running. The configuration file contains crucial values like db.url and db.token, which are...
For my app, I am trying to pull a fresh location only once to show nearby points of interest. I don't want to pull a cached location because the points of interests are displayed in order of distance from the current location, so the most current...
I'm trying to read data from a Firestore database. one of which is a Timestamp value. So I have a function to convert into a string. the conversion works for other Timestamps but not this one particularly. I don't know why.
I'm using ModelMapper to convert from my domain object to DTO.
@Getter @Setter class Pojo { private String a; } @Getter @Setter class PojoDto { private String a; } My controller returns Page and my service layer returns Page, so the controller...
I made an application to find the key using coordinates. Everything seems to be working, but the notification of the location does not come. I made the notification using the Toast class. Here is the code:
MainActivity:
Apologies if I have overlooked something: is there a way to get the length in twips or points of the text that is held in an XWPFParagraph. I could achieve it using Font And FontMetrics separately but that seems clunky. Any help will be much...
I am trying to run wordcount script using Java in apache spark installed locally. for that i am getting below mentioned error. Tried with multiple solution/blog but still getting same error.
This is an exercise question in the book. The title is to design a simple employee information system that can input data and display the input data. An extension of this exercise requires me to design an save option to output the objects in the...
I am new to Java and Java Swing but it is what I inherited. I am trying to figure out the best way to keep a combobox up to date with a changing list. If the user has already selected an item and that item is still in the new list I want to keep it...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения