I am working on a Micronaut project, where I would like to see if the environment variables from the application.yml are being correctly assigned using the @Value annotation, when the app starts locally. But every time the app is starting it shows me that the variables are not being assigned to the environmen…
Tag: java
editText.getText().toString() can’t enter data
I am trying to make an app in which I can add subjects and my grades, currently, I am working on a system for adding subjects. So, I have a button, when pressed it makes an editText “field” in which you can enter the name for the subject. The problem is, when you enter some text and press ENTER, i…
Translate SQL into Hibernate HQL
I’m using Spring boot along with Hibernate. I’ve only recently started using Java so I’m not quite good at it. I have a OneToMany unidirectional relationship with a join table. RssUrl Table User Table Join table I’m trying to translate this SQL into HQL It’s basically checking if…
How to create a tree by using nodes that point to next brother in Java?
I made a class (shown below) to create a tree where nodes point to the first brother on his own right and the first son (graphically the one on the extreme left). How can i generate and link nodes correctly inside a for loop? So the first iteration of the loop needs to generate and link the first son node
MongoDB – Update parts of object
I have the collection that stores documents per some execution Flow. Every Process includes “processes” and each process includes steps. So I end up with a ‘flows’ collection that has documents that look like this: A couple of notes here: Each flow contains many processes Each process …
difference between creating an object and instantiating an object [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I’m not able to understand difference between creating an object and i…
How do I transfer my parsed array data from one class to another?
My program uses Picocli to parse XML data and store it in an ArrayList. For some reason, the information gets removed when I try to access it from another class. I run the code below, and it shows the elements just fine: So I try to access sourceArray from another class: and results in variables being [], thu…
Share an array between threads in java
I’m currently working on my own little boardgame and came across a problem with multithreading. I have one thread that renders the board and one that supplies the data to render. The supply thread writes his data to one array and then the renderer takes this data and renders it on the screen (The render…
Prefix To Postfix Java
I need some help with my prefix to postfix code. When ever I generate the action through GUI from the expression “* 2 + 2 – + 12 9 2” it returns 2*. It should be returning “2 2 12 9 + 2 -+*”. I keep changing the code around and I keep ending up with the same result. Please
If else condition with StringBuffer
I’m trying to make a If else condition to check if a current data exists on the database using a JSON request on a java application consuming a Rest Webservice. So, I want to receive a boolean or make a condition to verify what i’m receiving (normally, null or true/false) There’s a way to tr…