I have a servlet:
import br.edu.ifpb.pos.model.Art;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOExcept...
I have an exercise for college but I'm lost in my logic and how to solve it.
I have to collect the results of games and set the score for each result.
the winner takes 3 points, a draw guarantees 1 point and the defeat does not get any points....
Why am I no return on Ajax? It goes through the alert (over the for), but never enters the FOR. I'm not using any framework.
Servlet:
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)...
Oops, good evening, guys, with some questions about java systems running without a server.
I and some friends are developing a java integration project (we receive information from a server / service, we treat it in our system and then we pas...
I'm developing an application that has a form where the user can attach a photo next to the form. But I'm having trouble implementing this. In my APK I have already captured the image, converted to base 64 and sent via Rest to my service.
publ...
I am creating a game in Android studio using the SurfaceView class that is instantiated in MainActivity and a thread that is instantiated in SurfaceView, the problem is when I turn the screen on and it goes back to the initial state, ie it does...
I'm developing an android
Currently, when I run the APP, it starts by reserving 36.62 MB of memory.
I would like it to start at the top of 50.00 MB or, when it reaches its limit, add more memory.
Is there any way to set the i...
I am doing a test with a simple code, but this one is giving error. I want to simply get the contents of a binary file which is an image (jpg), and save it again with another name.
My code is this:
String content = null;
FileInputS...
I'm trying to generate a hashmap (String, List Exercises) from a json:
[
{
"grupo":"Joelho",
"nome":"joelho_1",
"habilitar":"1"
},
{
"grupo":"Joelho",
"nome":"joelho_2",
"habilitar":"1"
},
{...
I'm having trouble adding labels to different positions, relative to a field (% with%). I'd like to put a JTextField before the field, the left, and a second label below the label .
Example: Itriedtousesomelayoutmanagers,...