Questions tagged as 'java'

1
answer

Set AlertDialog with Open Keyboard

I have the following problem I have an AlertDialog Whenthekeyboardopens,thedialoggoesup,butpartofthedialogishidden.Itdoesnotadjusttheheightasthekeyboard DialogXML:<ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"...
asked by 29.09.2016 / 18:49
3
answers

What kind of return from a select count (*) in Spring JPA?

I need to know the type of return that Spring JPA returns to put in the Service package, because it is giving NullPointerException : Dao: public interface PlaylistDao extends JpaRepository<Playlist, Long> { @Query("select co...
asked by 23.11.2018 / 18:47
1
answer

What are JEPs in Java?

I was seeing the JDK 12 backlog and saw that the changes are all referred to as JEPs. In addition, in the features list has "JEPs targeted to JDK 12, until then." From what I've seen, a JEP is a kind of document with a definite format....
asked by 28.11.2018 / 15:54
1
answer

How to create button in Android's behind code?

I'm developing an application where I download some images from the internet when the application is opened. I want, when I have these images downloaded, create a button for each image and put it in the background. But since I do not know how...
asked by 18.12.2014 / 20:09
1
answer

Make a generic vector in Java

How to create a dynamic vector in Java with generic programming? This vector must have an initial size of size 4 and be enlarged as new elements need to be inserted. The class must have: Standard Builder. Constructor with initial vector...
asked by 05.05.2016 / 16:23
1
answer

Deploy serializable in JSF

Why implement the serializable in the JSF managed bean? When to use and not to use? What is the serializable interface for?     
asked by 12.12.2014 / 05:15
2
answers

Read input data to EOF in the Online Judger URI

Hello, I'm trying to solve the following problem below: However,I'mhavingtroubleputtingthisEOFconditionintojava.HereinthestackIfoundsolutionsattempts,howevertheyarerelatedtotheuseoffiles,andformyproblemthereisnousefile.Forexample:while(fileR...
asked by 11.04.2016 / 20:59
1
answer

Definitely solve problems with strange characters in Java

I had a problem and resolved it as follows: javac -encoding UTF-8 nomedoarquivo.java How can I make this command set for all files already?     
asked by 04.07.2016 / 06:41
2
answers

Difference in compile and execution error

A compilation error would be one that the IDE already warns before it even compiles, such as missing a semicolon, correct? But what about the execution error? It would be, for example, a Exception ?     
asked by 27.09.2018 / 16:29
2
answers

Allow special characters like Java keyboard input

I'm using Scanner to read some keyboard data, but accents and special characters are not identified. For example: John and Maurice appear with a square in the accented letter, but if I type these words in the output on screen does not have pr...
asked by 17.11.2015 / 21:34