Questions tagged as 'java'

1
answer

Why do not the constants in the File class follow the constants convention?

The convention for constants in Java says that a constant must be declared with uppercase letters and the words should be separated by underscore (_). The declaration of a constant is done by the sequence of the keywords static and...
asked by 10.07.2017 / 14:51
1
answer

Why hide the implementation of a class?

This is the concept that I have tried hard to understand, but I have never fully achieved it. I'll take this excerpt from a Deitel book to illustrate:    It is better software engineering to define member functions outside the   class defi...
asked by 10.09.2017 / 16:30
1
answer

Difference between using SQLiteConnection and DriverManager Java

I'm connecting to the Sqlite database with the following code: import org.sqlite.SQLiteConnection; public SQLiteConnection conn() throws SQLException{ String path = System.getProperty("user.dir"); try { return new SQLiteConnection...
asked by 26.06.2017 / 18:43
1
answer

JFreeChart - Problems customizing chart

I'm developing an application that has a PivotChart. I need to change the style of the chart, but I can not. I need it to have white background, blue line with square markers and have the values on each marker. I have already searched for...
asked by 30.04.2015 / 21:59
2
answers

How to separate libraries into an application suite?

I have a suite of web applications composed of several applications, each specialized in an area of the company, such as property management, contract management, HR management, works management, among others. All modules access the same databas...
asked by 16.04.2015 / 17:07
1
answer

How do I get the predominant color in an image?

I'm taking a photo of a camera and passing it to a ImagemView and would like to take the predominant color of this image, how could I do this on Android? my class proximoLaiout (I wrote laiout with i for wanting kk) package com.exam...
asked by 05.08.2015 / 03:10
2
answers

How to add SQL Server dependency in Maven?

I'm trying to add the dependency of SQL Server on my POM but gives Missing Artifact . <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <v...
asked by 03.07.2015 / 22:14
1
answer

Stream () and parallelStreams ()

I've seen lambdas performance and streams much better than using repetition loops, so I try to use as much as possible. My question is when should I use Streams or ParallelStreams? How does this parallelism of streams occur?     
asked by 03.07.2015 / 16:49
2
answers

Add JNI Library Compilation with maven or ant tasks

I'm creating a Java project with native methods ( JNI ) without having to create three separate projects for this. My goal is to compile everything I need in one go. I use only one DLL / OS in this project generated by a single C file. How...
asked by 08.10.2014 / 19:07
1
answer

Decrypt db.crypt files

I would like to know if there is any way to decrypt files with the extension db.crypt in general on the Android platform and is there any API that does this work?     
asked by 07.01.2015 / 15:27