Questions tagged as 'java'

2
answers

Best solution for Web service Rest [closed]

I wanted to implement a Web Service that would provide data to mobile platforms (Android and iOS), does anyone know the best service I can use for this? I was doing some research and found RESTEasy and JBoss, but as I do not know anyt...
asked by 07.08.2015 / 17:25
3
answers

Swap String contents for "$"

I have a String with a content and I need to do a replaceAll, however the text to be replaced contains a dollar sign "$" and this causes the error Illegal group reference . Example: String texto="teste {{texto}} teste"; String...
asked by 08.03.2017 / 21:27
1
answer

Why when I do two operations with integers and save the result in a double it gives me a 0,0 return?

Example: double teste = 673/5455 * 100; System.out.println(teste); It prints 0.0 being that is not the result of the account ... why does this happen?     
asked by 12.03.2017 / 17:56
1
answer

ArrayList giving error

I'm doing a database program and I'm not able to make my list appear in jtable . I created the method and at the time I call it my method of error, can someone help me the code is down there? Error:    Exception in thread "AWT-EventQ...
asked by 05.03.2017 / 15:40
2
answers

Software to create documentation without using source code

I'm developing an API, pretty big, and I want to create the documentation, but, most of the programs I found just get the documentation from the source code comments, what I really want to do is to manually write everything the API must have and...
asked by 10.04.2016 / 21:13
1
answer

Why object is not being instantiated?

I have a Bean class ( Casa.java ) public class Casa{ //atribubutos private String parede; public Casa(){ } //getters e setters public void setParede(String parede){ this.parede = parede;...
asked by 15.10.2015 / 17:01
1
answer

My application does not change data in the database

I'm developing a software for a video store with MVC. There are two problems: not changing people's attributes and displaying the following error:    java.sql.SQLException: Column 'code' not found '. This error is saying that there i...
asked by 27.10.2015 / 18:58
2
answers

JSON handling returned from PHP

I would like to know how to manipulate data from JSON below. If the structure is correct, and if not, how do I change the structure of it? { "postagens":[ { "URLIMG":"1.jpg", "NOME":"Jhonatan", "SOBRENOME...
asked by 04.11.2015 / 01:47
1
answer

Android - Error NullPointerException

I'm getting the following error randomly, that is, it gives error a few times and others do not: Caused by: java.lang.NullPointerException at pt.cartuxa.Login.onCreate(Login.java:62) My 62 line is as follows: password.setImeAc...
asked by 19.11.2014 / 16:29
1
answer

Why does the application stop if the field is left empty?

public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSt...
asked by 24.11.2014 / 20:45