Questions tagged as 'java'

1
answer

Sort String List

Does anyone know how to sort a list ( Array List ) of Strings that contains alphanumeric information of type: "ABC 12" "A 8"     
asked by 20.06.2017 / 19:33
1
answer

Object null, I do not understand why

I have this object myDB which is an object of the DataBaseHelper class, but when I try to invoke a method of this class it says that this object is null. Class where this object is: public class Caldroid_fragment extends Fragment{ priv...
asked by 10.07.2017 / 19:51
1
answer

Why this method generates java.lang.StackOverflowError? [closed]

The following code generates this: java.lang.StackOverflowError at modelo.Secao.eleitores(Secao.java:67) And I do not know why.     
asked by 18.09.2016 / 00:27
1
answer

Problem with while [closed]

public static void main(String[] args) { Scanner sc = new Scanner(System.in); BancoConta p1 = new BancoConta(); p1.inicio(); } public void inicio() { do { System.out.println("Para criar conta bancária: (1)"); Sy...
asked by 30.10.2017 / 19:05
1
answer

Request access data when any data is wrong

Could someone tell me a way to do the following thing: After the password or user error, or both, the user would return to the first question, in the case: "What is the user?" so he could try again. package SistemaLogineRegistro; import java....
asked by 04.06.2018 / 17:49
1
answer

Error when testing sky sandbox

When accessing urls link {PaymentId} when replacing PaymentId by a value: 1 (random value) I get this message: "Message": "The requested resource does not support the 'POST' method."     
asked by 16.08.2018 / 21:50
1
answer

Simple Problem (Java Calculator - Switch) [closed]

I'm having a lot of problems regarding a job to be delivered tomorrow, can anyone help? EDIT: I made the base, but I'm having trouble adding the switch to the code and completing the calculator, can you tell me how to do at least the add and...
asked by 14.05.2018 / 01:18
2
answers

Problem trying to add an array of objects inside another array in java

Hello, I have a list of Notes objects and need to save them in xml files. I'm trying to convert this list to arrays to add them to the xml file. However I am not able to do the conversion properly, because it is a list of Notes that receive anot...
asked by 16.08.2018 / 16:40
1
answer

How to change padding or margin of homeasupindicator

How to get the space between the arrow and the android icon?     
asked by 15.02.2017 / 12:56
2
answers

fill an Array with data up to a specific value

I need to make a program that reads the keyboard names until the user types the word "end", and then prints the names typed in the order they were typed. So far, I have tried to resolve this issue using ArrayList , like this: public c...
asked by 09.10.2015 / 20:35