Posts by MarlonJhow • 645 points
29 posts
-
0
votes6
answers2089
viewsA: Check if a String contains two words
The problem is in the index, It will return the position of space, that in the casó is 7. I believe the approach below should be more assertive to find the word with only one space public static…
-
1
votes2
answers1343
viewsA: Is it possible to use firebase on computers?
You can integrate firebase in both Node and java and both Oces can do all kinds of applications that Oce mentioned above. Follow an example of a java application with Firestore ("New Firebase"):…
-
0
votes1
answer112
viewsA: Provide a downloadable file in an API that returns JSON
The best way to do this is by using a service of Storage, as the firebase for example and will work as follows. You will configure the API in your project and upload the file in the firebase…
-
0
votes2
answers1198
viewsA: Any IDE like Android Studio?
I think your configuration is even reasonable if you don’t mess with something very heavy, one option is to upgrade this memory to 8GB. About the IDE, I don’t know if the best IDE to learn Java is…
-
0
votes2
answers1756
viewsA: Uploading files with Java
The function method you are calling is waiting for an object of another type. Try to do according to the example below: protected void doGet(HttpServletRequest request, HttpServletResponse response)…
-
0
votes1
answer19
viewsA: Three inputs within the same form. Can I do your actions without leaving the page (without refreshing)?
This is Marcio speaking! Look, there are several ways to do this. I believe that the ideal and most used is to use Javascript to manage these button events. Follow an example below: <!DOCTYPE…
ajaxanswered MarlonJhow 645 -
0
votes4
answers7060
viewsA: I cannot import any Python module
This is Santos speaking! Man, this looks like Pip might be installing in its old python version. Do the following. Try to execute the command by passing the version down, like this: pip3.6 install…
-
0
votes1
answer23
viewsQ: Is Jersey2 different from Jersey v2.x?
I am trying to implement Swagger in Jersey and there is the implementation for both Jerseys. Want to know if Jersey2 is different from Jersey v2.x? or is the same.
-
1
votes2
answers868
viewsA: Commit files are missing
Your changes must have been in the branch that Voce was working on. To have these changes in master, you must merge the two.
-
1
votes3
answers135
viewsA: Difference of null and another proposition using this null object
I do not know if it proceeds, but my college teacher said that if you use & (a &) it checks both, and if you use && (two &) it check the first and if it already gives negation it…
-
11
votes2
answers3452
viewsQ: Instantiating interface - What’s the point?
I learned in college and in all the materials I saw that the interface serves to define a pattern that classes should follow and interfaces CANNOT be instantiated. However I came across projects…
-
0
votes1
answer287
viewsA: JPA Eclipselink - Trigger SQL SERVER
The problem was in the following line that performed select inside the loop. Select DateAdd(month, @AUX, @VCM) SQL SERVER ended up being complicated with the handling of the various returns it had…
-
-1
votes1
answer181
viewsQ: JPA Eclipselink - No entity update
I have a relationship in the JPA of Client 1 -> 0.. * Loans. So I have in the client class a set Loan List to make the Onetomany. It turns out that when I add a customer he updates the normal…
-
0
votes1
answer287
viewsQ: JPA Eclipselink - Trigger SQL SERVER
I’m having a problem with a Trigger created in SQL SERVER. When I insert the data into the table that starts Trigger directly in SQL SERVER Trigger works normal, however when performed insertion by…
-
2
votes6
answers2011
viewsA: Hibernate is not creating the tables
I use eclipselink and after persistence-Unit I have to declare the classes that are Entity. Follow below example: <persistence-unit name="clientes" transaction-type="RESOURCE_LOCAL">…
-
1
votes3
answers1290
viewsA: mask jquery currency
Speaks my dear, I am input this way to stay as BRL currency in my project. Maybe it works for you. <p:inputText id="valorParcela" value="#{clientebean.selectedEmprestimo.valorParcela}">…
-
0
votes1
answer3999
viewsQ: Calling xhtml page by commandButton
I am implementing the Toolbar component of the first faces and within this component there are several commandButtons that I need when clicking it to call another xhtml page of my project. How do…
-
1
votes1
answer900
viewsQ: JSF - how to send information to another page
I have a orderList for the operator to select the customer’s name. After he selects I need to direct him to another page with the customer’s data. How do I pass on customer information that has been…
-
0
votes2
answers4580
viewsQ: Primefaces JSF - <p:commandButton that serves the update and oncomplete
I am trying to make an orderList and I am having trouble configuring the attributes in the tag commandButton update and oncomplete. I also don’t know what their function is, but I know it doesn’t…
-
1
votes3
answers303
viewsQ: JSF - Selecting Item from a Set
I want to make a xhtml that returns a list of users and next appears a button to select a particular user. Something like this: +----------------------------+ | ID | User | (Button) |…
-
3
votes2
answers1567
viewsQ: Much interface query for many SQL server
Hello, I have a question to make a select in the SQL SERVER. I have 3 tables. They are, BOOKS, AUTHOR and LIVRO_AUTOR. To LIVRO_AUTOR has foreign key to the id of BOOKS And AUTHOR. I need to make a…
-
6
votes1
answer9796
viewsQ: What is the shortcut in Workbench to run the whole script
I know that the shortcut to run a line is Ctrl + enter. But so far I haven’t found the shortcut to run the whole script.
mysql-workbenchasked MarlonJhow 645 -
8
votes2
answers9610
viewsQ: Pick current date from machine
I need that when you execute the code it takes the current system date and assign to a Date. Example: Date x = new Date(now);
-
0
votes1
answer21
viewsQ: How to make direct connection on the table?
I want to know how you do it Connection in Java to perform the direct connection in the table, or if it is possible to do this. Example: conexao =…
javaasked MarlonJhow 645 -
2
votes1
answer8737
viewsQ: How to fix "Sqlexception: No suitable driver found" error while making a connection?
I am trying to make the connection to the database in my code, however it appears the following error: Exception in thread "main" java.sql.Sqlexception: No suitable driver found for…
-
2
votes1
answer311
viewsQ: Build report in Java
I’m doing a system with swing as a college job and at the end of each cycle of days the program wanted it to generate a report. Does anyone know how to compile a report in Java?
-
3
votes2
answers1346
viewsQ: Center Swing Window
I wanted to know how to call a Secondary Window in Swing and leave it centered with the Main Window of the program. At the moment, when I call him appears in the upper left corner.
-
-1
votes2
answers1293
viewsA: How to create Jbutton in "square" format?
I think if I create Button in Jbutton ves it comes comic. Goes below: Button button = new Button("stack over"); button.setBounds(63, 167, 70, 22); getContentPane().add(button);…
-
4
votes2
answers220
viewsQ: Declare Set<double> - JAVA
I wanted to know how to declare a generic type set that is not a class. Example: Set<double>. All the examples I’ve seen set is from a class. I’m starting to see sets now. I need to make a Set…
javaasked MarlonJhow 645