Questions tagged as 'java'

2
answers

Hexadecimal numbers in reverse

How to print the hexadecimal numbers entered by the user in reverse? For example: Entrada: 0x101c4701 Saída: 01471C10 If possible in Java and C ++. In fact I want to get the information contained within a Windows registry file that loo...
asked by 29.11.2014 / 16:28
1
answer

Use ArrayList or LinkedList

The List interface has several implementations, including ArrayList and LinkedList . I usually use only ArrayList , but I would like to know in which scenarios it is recommended to use the LinkedList implementati...
asked by 05.11.2018 / 17:01
1
answer

Disable JFrame maximize button

I set the size to 600x600, but wanted to know how I do it, when I click on maximize, do not run out of background or even take the maximize button and just let it down and close. code:/**Tochangethislicenseheader,chooseLicenseHeadersinProje...
asked by 26.11.2018 / 13:13
2
answers

Calling the same condition in code

//Função para verificar existência de conexão com a internet public boolean verificaConexao() { boolean conectado; ConnectivityManager conectivtyManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); if...
asked by 28.08.2014 / 05:05
1
answer

Insert NIB in the database

What kind of data is required to receive the Bank Identification Number (NIB) in a database? The NIB consists of 21 digits. I have tried but the following error appears: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range v...
asked by 22.10.2014 / 15:08
3
answers

Separate the values from List

I'm using List to sort some values, but I need to separate them after I've manipulated the values. List<Map.Entry<String,Integer>> lista = new ArrayList<Map.Entry<String,Integer>>(fila); And for printi...
asked by 25.09.2014 / 16:48
1
answer

How to cancel the enter of EditText?

I would like the keyboard not to happen when the user touched the enter was not for the next EditText. How can I do this?     
asked by 17.08.2017 / 20:37
1
answer

Performance Kotlin vs java and is it worth exchanging java for Kotlin?

The running performance in android (I mean the speed of the application and not the speed of compilation, since benchmarks in powerful machines showed kotlin slower than java in terms of compilation) of kotlin is faster and efficient? / p> I'v...
asked by 09.01.2018 / 18:54
1
answer

Error type mismatch: Can not convert from String to String [] - How can I fix it?

When trying to receive value through JOptionPane in an array, but gives this error: type mismatch: cannot convert from String to String[] How can I fix it? Here is my source code below: package br.deivsoft.estudo.modelo; import...
asked by 12.01.2018 / 03:56
1
answer

How to include multiple RadioButtons?

I was interested in doing an APP with 30 personality profile questions, where each question will have two alternatives of choice. I thought about using RadioButton , but since there are 30 questions I would not like to include them all on...
asked by 19.07.2017 / 16:28