Questions tagged as 'java'

3
answers

Is it possible to use pointers in Java?

In language C we can use ponteiros as follows: int *ponteiro, teste; ponteiro = &teste; And in Java is there any alternative?     
asked by 13.04.2015 / 22:42
2
answers

Criteria API - Hibernate vs JPA 2

I'll try to phrase this question as unthinkingly as possible in the spirit of stackoverflow in English. For a new project I need to make the decision between using the JPA 2 or Hibernate API (while it is technically possible to mix the two, for...
asked by 18.12.2013 / 15:17
3
answers

Pure Java and Android Application

I'm a beginner in Java. I preferred to start studying pure Java, that is, I discarded studying through dragging components. I knew JavaFX; I preferred to study the construction of these components at hand as well. I learned many things, many eve...
asked by 06.08.2015 / 14:33
1
answer

Use ResultSet without knowing the column type

I need to use a ResultSet that returned the data from a query in the Database. I am making a very generic class, it will be able to be used on any table, so I do not know what kind of data it is returning. For example, the Name column will re...
asked by 17.01.2014 / 17:54
2
answers

Using Java together with C

I'm working on a micro controller project. My source is all in C though I would like to interact with that program using Java. Is this possible? For example: The C program executes microcontroller control commands and through a graphical interfa...
asked by 15.01.2015 / 13:52
1
answer

What tags can I use to document my code?

I'm looking for better ways to document my code in Netbeans. In addition to the tags known and used a> in the Javadoc something caught my attention and piqued my curiosity. When typing {@ some suggestions for documentation with...
asked by 08.12.2014 / 21:25
2
answers

Why should not I change the getters and setters?

Recently I came across a friend talking that it is not advisable to change getter and setter. I had made a setter change of a List . In it I did not receive a list by parameter, but an object of the type, and within the method I made a...
asked by 13.06.2016 / 19:35
3
answers

Has Java's default output function already accepted several parameters?

My teacher taught the class how to use System.out.println("Mensagem") in this way for the class (the type of total_alunos does not matter): System.out.println("Existem ", total_alunos, " alunos na classe."); After popping some...
asked by 22.06.2015 / 20:34
4
answers

How do StringBuffer () and StringBuilder () behave?

Problem and Mystery: StringBuffer y = new StringBuffer("Eduardo"); I'm using a StringBuffer because I need to add some values to it later. I was debugging and noticed that there is a blanks at the end. Notice the image: Image...
asked by 27.02.2014 / 22:17
2
answers

Draw path on the map

How do I draw a certain route using the Maps API V2? What I want is something like this: I go to street A and street B and get the picture of the route between these two streets. I do not want API to give me a hint about the best path but the ex...
asked by 25.02.2014 / 15:58