Questions tagged as 'java'

2
answers

Algorithm to return the point of intersection

I need to return the relative positions between two lines, at this point in the program I'm sure they are competing. My method performs the following equation to avoid using linear systems: Ifindalambdaandreplaceitintheequationtofindthepointinco...
asked by 05.08.2015 / 21:32
2
answers

Splashcreen Plugin (Cordova) and icons do not work on Crosswalk

I'm using this module that automatically adds a Crosswalk wrapper to a Cordova project. Obs : It requires that the "platform" be [email protected]. Ok, so I give the command to do the Crosswalk Wrap in the project and everything goes well....
asked by 06.03.2015 / 07:02
1
answer

Difference hashmap and arraylist

Could anyone explain the difference between HashMap and ArrayList ?     
asked by 05.06.2017 / 20:30
1
answer

this inside a constructor, what does it do? [duplicate]

Good, can someone tell me what this this does? public Tempo (){ this(0,0,0); } public Tempo (int h){ this(h,0,0); } public Tempo ( int h,int m){ this (h,m,0); } public Tempo (int h,int m , int s){ SetTime(h,m,s); }     
asked by 10.06.2017 / 12:04
1
answer

Check if String has '+' character

I need to look up a string if it has a + character, like this: teste = teste.replaceAll("+", "e"); but I get this error:    java.util.regex.PatternsSyntaxException: Dangling meta character '+'     
asked by 02.06.2017 / 05:25
2
answers

Declare Setdouble - JAVA

I wanted to know how to declare a set with a generic type that is not a class. Example: Set<double> . All the examples I've seen the set is of a class. I'm starting to see now to see sets. I need to make a Set that has 2...
asked by 27.08.2015 / 12:17
1
answer

Error log in Java application

We developers when coding, we have how to track the process of running a software through the output of the IDE, but when the software goes to production and we no longer have the development environment, how can we map an error that happened fo...
asked by 31.08.2015 / 20:30
1
answer

Configure for Eclipse to display parameters name in autocomplete

Sometimes eclipse, it shows in auto-completing the variable names in an easier way to understand. For example, if in this line press ctrl + Space: BufferedImage img = new BufferedImage(); It shows among others BufferedImage (int width, int...
asked by 31.12.2015 / 14:01
3
answers

Error java.lang.NoClassDefFoundError: Caused by: java.lang.ClassNotFoundException: When I execute .jar

I'm developing in Netbeans IDE, when I run IDE everything works fine but when I run clean and build and create .jar when running throws me this exception: Ihavetriedtocompilepackagebypackagebutitstilldidnotwork.Anysuggestionstofixthis?...
asked by 15.01.2015 / 12:52
1
answer

Dates Conversion to the Mysql database

Hello! Well, I'm using xhtml and primefaces. In my xhtml page, I have a date field and I use the converter to save to the database, I have a problem with the day. If I want to save 04/30/1989 In the database saved 1989/04/29 My fi...
asked by 02.11.2014 / 17:20