Questions tagged as 'java'

1
answer

Insert Multiple Markers on Maps

I found a code here on the site, I put it in my project but it did not work, does anyone know how I can solve it? The method below is called in onViewCreated() Note: I'm using the Map within a fragment, can that be? public class Maps...
asked by 23.10.2018 / 01:09
2
answers

Doubt about filling Array in Java

I'm having trouble solving the following exercise:    Create a class with a main method;    Create a 10-position int array and popule using for    Print all the values in the array and, for even values, display the value followed by the wo...
asked by 09.08.2018 / 16:03
1
answer

Error calling add on a HashSet

Whenever I try to create a objeto.add(); and put the attribute on it, it still gives me an error. See my code: public class Agencia { private String nome; private String endr; Set<Conta> listaContas = new HashSet<Co...
asked by 08.11.2018 / 14:30
1
answer

In totalcross, how do I show a popup when I click a button inside an accordion?

I have an application with Totalcross, I'm using the accordion and inside every abba I have a refresh button, how do I do when I click the refresh button to see a popup with an "updated data" message? I tried using "addPenListener" and "onEvent"...
asked by 09.11.2018 / 15:47
1
answer

Get each line of a CSV file

I need to get data from a CSV file and store it in an array. Example: CAIO ; 0909;abacaxi BRUNO;1231;maça I have to take for example line 1, and each value of each column store in a variable to play in a theft function (Selenium). The...
asked by 08.08.2018 / 20:26
1
answer

hibernate.hbm2ddl.auto \ Invalid object name 'sys.sequences'

Hello, I have the following code snippet in my context.xml: <prop key = "hibernate.dialect"> org.hibernate.dialect.SQLServer2012Dialect </prop> <prop key="hibernate.show_sql">true</prop> <prop...
asked by 31.07.2018 / 15:10
1
answer

How to use two date parameters for two Betweens without repeating the parameters using Spring Boots?

I'm starting with Spring Boot and I'm trying to use it for a query where I want to check if two date columns are between a given period of parameters. The code below works, however for this I have to repeat the parameters (start date and end dat...
asked by 02.10.2018 / 17:22
1
answer

Text encoding for RTF in java

I'm trying to modify a .RTF file, where the parameters to be modified are set as numbers. However, its characters are in ANSI I believe, because the file has its header the following directives in RTF {\rtf1\ansi\ansicpg1252...
asked by 24.09.2018 / 23:14
1
answer

Opening an activity with a button

I'm having a problem opening my activity in various forums and have not found the answer. I have the activity "TelaDeLogin" and the activity "Feed", and already tried to open in several ways, here is the button xml code: <Button and...
asked by 10.07.2018 / 17:54
1
answer

Popular Excel with Java object

Hello, I'm having a problem popping a table the way I need it, I want to do something like this. ButwithmycodeIonlygetthatpopular. HowdoIformatinthesameway?ItriedtoskipthelinestomakeitlookalikebutIcannot.publicvoidexportar()throwsIOException...
asked by 17.08.2018 / 14:54