Questions tagged as 'java'

1
answer

Store values in vector

I have an exercise on vetores/array with simple value, where I must correct a test, comparing it with the feedback and still calculate the percentage of the students that reached the average.    6) Make a program to correct multiple ch...
asked by 10.08.2018 / 14:14
0
answers

Limit the size of an xml file that receives an XStream list?

Hello, I'm creating an xml file, using XStream and would like to limit the size of my XML. For example to receive only 10 items from the list? Every 10 items added to the list, generate a new xml. How can I do this in java?     
asked by 30.07.2018 / 17:38
0
answers

Error creating dynamic form with thymeleaf

The form receives a list and creates fields to be filled <form action="#" th:object="${questoes}" method="POST" th:action="@{/testar}"> <div class="form-group" th:each="item, questao : ${questoes}"> <...
asked by 27.07.2018 / 02:26
0
answers

About: Vertx Errors

I was testing my application, and when I ran it, I received the following error: =============================================================================== BloodStrike Lobby Server Créditos: ExtremsX Versão: 0.1 Beta ====================...
asked by 02.08.2018 / 20:45
1
answer

How to save file from one folder to another?

I have a listView that displays the files from an external folder (usb). I want to select one of these files and save them to an internal folder (Basket). Here's when I select an item from my listView , I get the position of the item, howe...
asked by 02.08.2018 / 22:11
0
answers

Notepad with JavaFX

Good afternoon! I'm a beginner in the Java universe, and I'm doing a notepad in JavaFX, basing myself on the standard Windows notepad, in order to fix the learning. I am using in place of a TextArea a javafx.scene.web.HTMLEditor to have a gre...
asked by 25.07.2018 / 18:57
1
answer

Remove accentuation of words in searchView

I'm trying to remove the accent from the searcher's words, but my code is not working. I'd like you to look at a sample word Você all variations of Voce, Você, você, você, VOCE, VOCÊ . Thank you @Override public bool...
asked by 13.08.2018 / 14:32
0
answers

Run a Job with Quartz and Spring

I need to run a job, I'm using quartz, but when the job runs I need to go to the database to make a query but it does not work, it returns the following error, I'm using Spring and Hibernate: 11:16:00.007 ERROR org.quartz.core.JobRunShell: Job...
asked by 13.08.2018 / 16:27
2
answers

Static ArrayList returns size 0 when I try to retrieve it in an activity

I have this class: abstract public class ListaEstaticaDeErros { private static ArrayList<DescritorDeErro> listErros = new ArrayList<DescritorDeErro>(); private static boolean fimSinc = false; private static int municipio = 0; publ...
asked by 02.08.2018 / 15:59
1
answer

Sorting letters in an array, amount entered by the user

I'm having difficulty here so the user can type how many letters each of them wants to be drawn. Example as in the code below shows the letters char[] letras = new char[]{'S', 'C', 'M', 'A','L'}; . These letters are drawn in the array, but...
asked by 02.08.2018 / 19:24