Questions tagged as 'java'

1
answer

How to generate with while or do-while several Iterations in an ArrayList of a dataset?

I have the following data set in an arraylist. Conference,Conference,1.0,1.0,1.0,1.0,1.0,1.0,true,1.0, 01,6.0 Reviewer,Reviewer,1.0,1.0,1.0,1.0,1.0,1.0,false,1.0, 01,6.0 Review,Review,1.0,1.0,1.0,1.0,1.0,1.0,true,1.0, 01,6.0 Person,Person,1.0,...
asked by 05.08.2018 / 02:26
1
answer

First name, Last name, Age JAVA POO

I have to do this: computationally the problem of getting the full name, age, age in months from the name, surname and year of birth of a person. I did it but it's not working, can someone help me? public class Pessoa { public String nome;...
asked by 09.10.2017 / 03:52
1
answer

error: while expected / eached end of file while parsing

guys, I'm having trouble with my Bingo app public class MainActivity extends AppCompatActivity { int[] ids = {R.id.button2, R.id.button3, R.id.button4, R.id.button5, R.id.button6, R.id.button7, R.id.button8, R.id.button9, R.id....
asked by 25.09.2017 / 20:11
2
answers

Verify that the string contains only numbers

How can I check if a string contains only numbers? For example, you can not have * / = e etc ... only numbers. Because I need to convert a string to int and if you type letters, symbols will generate an error.     
asked by 15.12.2017 / 19:47
2
answers

Java Help: Arrays

Exercise:    Make two lists of names in the form of arrays, compare how many names in List 1 are in List 2, and then calculate their percentage of the total percentage of people in List 2 Here is the code I've already done: import java....
asked by 10.07.2016 / 03:53
2
answers

What is the difference between Double and double in Java? [duplicate]

I was making a code and by mistake I ended up putting double and the IDE accepted, I always used it with D . What's the difference between the two?     
asked by 09.12.2018 / 18:38
3
answers

How would regex look to handle this case? [closed]

I can not separate words like this: In case I have CPFConsole , I wanted to separate to CPF and console. The code I have separates like this:   ([A-Z][a-z]+)|([a-z]{0,})|([A-Z]{2,}) But this code separates this way: CPFC...
asked by 06.12.2016 / 21:13
1
answer

need help in enum in java [closed]

I'm migrating a desktop application in delphi to java, and in delphi has a class that persists in the bench the values 00, 10, 20 and 30. I'm doing an enum in java to persist values. I know that by annotation, I can define the string and ordinal...
asked by 08.04.2017 / 21:18
1
answer

Logical Problem Ordering Method BubbleSort

I am doing sort numbers from a CSV file. I import the numbers and step into an Array List and convert the ArrayList<String> to ArrayList<Integer> . It happens that I am having a logic problem when sorting the numbers. Th...
asked by 20.11.2018 / 08:26
1
answer

Word reserved as variable name

I'm building a program that integrates an online store with another program that controls the physical inventory of a store. Communication is done through HTTP requests that respond in JSON format. In one of the response JSON, I have a variab...
asked by 23.11.2018 / 17:56