Questions tagged as 'java'

2
answers

How to remove accents and other graphic signals from a String in Java?

How to remove accents and other graphic signals from a String in Java? Ex .: String s = "maçã"; String semAcento = ???; // resultado: "maca"     
asked by 11.12.2013 / 17:36
1
answer

Memory reserved for tomcat

My system is on a server that has several tomcats, I need to disable the tomcat that has the most memory reserved for it. How do I view the memory reserved for each tomcat on the server?     
asked by 31.07.2017 / 14:01
1
answer

Method returning empty list

I'm having a problem with a method in java. The intent is to split a HashMap into pages, and return an ArrayList with each page. Code: public static ArrayList<HashMap<String, Key>> getKeysMap(HashMap<String, Key> map,...
asked by 15.07.2017 / 20:50
1
answer

Attempt to invoke virtual method 'void

Good night, I can not solve the problem, it says that it has an object not referenced (null object reference), but it does not have to initialize the following code: public void deletar(int id) { conn.delete("RESULTADO", "_id = ?",...
asked by 16.07.2017 / 03:13
1
answer

Create trigger between tables

I'm doing a job here and I came across a problem, our system is a home automation system using java and mysql . We created two tables for logs , the first one saving the device, user and the exact date that was turned on or...
asked by 15.07.2017 / 16:11
1
answer

Error relating two tables in the database

I have a web project in java, in which I am mapping towers and patchpanels, where a tower has several patches and a patch has only one tower attached to it. This relationship is all ok, now the patch port relationship, where a patch has multiple...
asked by 14.07.2017 / 23:22
1
answer

Error calling a class method inside the main

I'm trying to call a method in main , however the class does not allow me to do it. The error appears:    "Can not Make aStiatic References to the non-static method" I have the class Gerenciamento , where the method is contain...
asked by 14.07.2017 / 03:02
0
answers

Multiple Spinners in one

   I have a Spinner A, I would like if I clicked on an A option, I would open an option in B, If I clicked on the second item in A, I would open a different one in b, multiple inputtext in a single spinner catliv = (Spinner) findViewById(...
asked by 14.07.2017 / 14:41
0
answers

Put update object

What's wrong with my put? It was to update objects in my database, but it does not work correctly, it does not return any errors, it just does not update. public String doInBackground(String... arg0) { String result = "";...
asked by 25.07.2017 / 19:10
1
answer

Does anyone know how I can do Scroll in Selenium Webdriver in JAVA

Code: WebElement emailsecundario = driver.findElement(By.id("RecoveryEmailAddress")); emailsecundario.sendKeys(" [email protected]"); WebElement gravar = driver.findElement(By.id("submitbutton")); gravar.click(); Does anyone know...
asked by 25.07.2017 / 19:01