Questions tagged as 'java'

1
answer

Problem with NullPointerException

I have a class like this: public class TileRender { private Map mapa; private TileMap tileMap; private Tile[] tiles; private List<ObjectPointMap> objMap; public TileRender(TileMap tileMap, Map mapa) { this.m...
asked by 27.09.2017 / 16:22
1
answer

Webservice delete error [closed]

I have a problem with my webservice. You are giving this error:    RequestFailed RequestFailed - > Status: (405) The code I'm using: @DELETE @Produces("text/plain") @Path("ExcluirLista/{usuario}") public boolean excluirTodos(@PathPar...
asked by 27.09.2017 / 15:52
1
answer

Access a directory by a jar

I've created a code that uses a file that is located in a certain directory (resources). When I squeeze this code through eclipse, this directory is found and all code actions are done. However, by generating a .jar of this code, it does...
asked by 07.11.2017 / 18:33
2
answers

passing of parameters between activities

I would like to be able to use the following code: public void Green(View view) { String cor3 = "verde"; Bundle parametros = new Bundle(); parametros.putString("verde",cor3); Intent it = new Intent(this, Main3A...
asked by 25.09.2017 / 19:26
1
answer

Call JavaScript function by Java (Webview android)

I have a simple question to understand but I have not yet found a solution. I have a Webview in my MainActivity where a responsive WebSite is created that I created, in this WebSite I have a shopping cart that clicking on it open...
asked by 25.09.2017 / 16:20
1
answer

Create tray dynamically

I'm solving a problem using RMI from a naval battle, I need to dynamically generate the board according to the user's need, this code I got from a video and I'm adapting as I ask in the exercise. public class Jogador { TocadorSom tsom = new T...
asked by 22.10.2017 / 17:49
1
answer

Identify JRadioButton selection

I created a java code with 2 JRadioButtons and I need it to appear on the console which radio is selected, and when I change the radio, it will appear on the console as well. I've already tried using if(rad1.isSelected()){"Argumentos"} an...
asked by 22.10.2017 / 16:47
1
answer

Equals and HashCode

Hello! I have a conceptual question. I have a readDao (table) method inside the ObjectDAO (Bank Access) method that returns a HashSet named ResultRead with all objects in the database of that table . I also have an insertRule (Object obj)...
asked by 21.10.2017 / 23:07
1
answer

Error validating Java user, Spring

I'm having an error while validating the user against the database. I debugged and the data (from the front end) is being received by the API. The method that does the search in the database is correct, but the strange thing is that the user an...
asked by 22.09.2017 / 22:01
1
answer

How does CamelCase work? Where is case in names? [duplicate]

I did not quite understand the concept of naming with capital letters. I know which classes should be named with the first capital letters (CamelCase), but what about objects, variables, and other identifiers?     
asked by 23.09.2017 / 18:22