Posts by HashMap • 586 points
15 posts
-
2
votes0
answers21
viewsQ: Choice of function type in javascript
I am starting in java script, however, not being able to understand the main difference between the use of these two functions, I know it can be a basic question but I do not understand, in which…
javascriptasked HashMap 586 -
3
votes2
answers707
viewsQ: Returns database data in a Jtextfield
I have a question regarding listing the data I recorded in a database for a JTextField. I created a screen, with the field for the user to enter the registration ID in the database and a FILTER…
-
2
votes2
answers538
viewsQ: Exception in thread "main" java.lang.Unsupportedoperationexception
Predicate is a functional interface that allows to test objects of a given type. Given a Predicate, the removeIf will remove all elements that return true to that predicate. When trying to use the…
-
6
votes2
answers159
viewsQ: Better applicability to make an interface functional
Starting from java 8, for an interface to become functional, it needs to have only one right method ? However we have the @Functionface annotation, which explicitly defines that this interface is…
-
4
votes3
answers1666
viewsQ: Rename gitignore.txt to . gitignore
I created a gitignore file on Windows, so that some unnecessary files are not uploaded to Github. However, this file is with the extension ". txt" (gitignore.txt). I want to leave you only as…
-
5
votes2
answers4312
viewsA: how to reference external css in an HTML page
The body that references the CSS is incomplete. Inside href wouldn’t it be "style9.css" instead of "atyle9.css"? try to put it this way: <link rel="stylesheet" type="text/css"…
-
2
votes2
answers1140
viewsA: Monitor if REST services are online
The Fiddler utility (http://www.telerik.com/fiddler) represents a good example of a tool with functionalities that make it possible to monitor services. Made available free of charge by the company…
-
2
votes1
answer221
viewsQ: Data sorting: Bubble Sort or Collections Sort method
Which is more efficient to sort a large amount of data passed through an array: Bubble Sort Using the own resources of Collections, for example the method Sort.…
-
4
votes2
answers1190
viewsQ: The Operator != is Undefined for the argument type(s)
I am trying to create a method to save users in the database by doing the following check if the id past user is different from null he changes if not he registered. Code public void salvar(Usuario…
-
1
votes1
answer149
viewsQ: Data access object - DAO
I’m learning project patterns and applying in a CRUD , within the DAO I can only leave these SQL related code? public class UsuarioDAO { private Connection con = ConexaoFactory.getConnection();…
-
2
votes0
answers323
viewsQ: Show user section in jsp and Servlet pages
I have an application made in JSP and Servlet that works as follows: Before viewing the content of the site the user has to log in, I wanted to add the following function after the user successfully…
-
6
votes1
answer2259
viewsQ: Use of the Consumer interface
What is the advantage of using the interface Consummer java-like? Example: I have a class UsuarioConsummer implementing the interface Consummer and calls his way acept, follow suit: public class…
-
2
votes1
answer40
viewsQ: Error: "update Were Reject because the remote work that you do not have locally"
I’m trying to store a project for Github by git, but when I use the command: git push oringin master Displays this message: Updates Were Reject because the remote work that you do not have locally.…
-
2
votes2
answers864
views -
1
votes1
answer162
viewsQ: Use of Swing in Java EE
Good Afternoon, when the programmer works with Java WEB, he generates graphical interface using the javax.swing class as in Desktop?