Questions tagged as 'java'

1
answer

array comparison in java

I was doing a project and needed the following logic ... link and I came across the following situation ... and if it was with 2 different queries how would it look? in my case I have to compare the result of the first select and search in the...
asked by 28.05.2018 / 19:52
1
answer

could not open terminal for stdout

I'm having a problem with gradle when running any command and the following error message is returned:      * What went wrong: Could not open terminal for stdout: could not get termcap entry View error in pastebin link     
asked by 10.05.2018 / 14:19
1
answer

main (String []) exceeds limit 65535 bytes

Hello. I need to run the code below with values that exceed those allowed by the String of main, what do I do? This is a list of numbers that exceeds 65535 characters. Actually the program will be used for several sets, so the "a" is in...
asked by 16.04.2018 / 01:58
1
answer

PostgreSQL error: org.postgresql.util.PSQLException: ERROR: portal "C_70" does not exist

We use a Java Web application with Postgres database to generate the Sped files and in the middle of generating the TXT file we are getting the error below. This portal "C_70" is not necessarily repeated, and it is not always the same lin...
asked by 28.05.2018 / 23:27
1
answer

Get Object id []

I need to get the id of these objects. Object[] classe = getNames().toArray(); String[] strings = Arrays.stream(classe ).map(Object::toString). toArray(String[]::new); for (int i=0;i<strings.length;i++) {...
asked by 01.06.2018 / 19:52
1
answer

Can not create a session after the response has been committed

I'm having the following error in my application that occurs when I access any page. I had to redo the application layout and that's when the problems started. Whenever I accessed a page other than login, this error occurred and I lost the se...
asked by 01.12.2014 / 18:58
1
answer

Api Cielo: Error creating a purchase

When I send a request simulating a purchase: URL link Json { "MerchantOrderId":"2014111703", "Customer":{ "Name":"Comprador crédito simples" }, "Payment":{ "Type":"CreditCard", "Amount":15700, "Inst...
asked by 20.08.2018 / 17:07
1
answer

DBSQLite Android Studio Problem

Good afternoon, I am having syntax problem in my SQLite code in Android Studio. Could someone help me? package studio.com.projetofinal; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDat...
asked by 24.06.2018 / 18:46
1
answer

How do I make a comparison of a character in the range of an alphabet?

The question is:  1) Help the university to assemble the divisions of the programming lab. To do this, write an algorithm that reads the name of the student and say in which division he is respecting the rule below: -children whose name begins...
asked by 21.03.2017 / 01:56
1
answer

Is it advisable to make programs in Java just by creating new classes within a single project in eclipse? [closed]

I started studying the Java language recently and I have a question, is it better to create a new project or always create a new class within a single project even if it is not on the related subject?     
asked by 06.12.2018 / 02:01