All Questions

1
answer

Txt file not found when generating .jar file

I have a Java application, this application has images, and I had the same problem: when I generated the .jar (executable) file the images did not appear, but if I were to run directly in NetBeans, it would appear. I solved the problem by puttin...
asked on 28.11.2015 / 21:17
1
answer

Why should we use "IS NOT NULL" instead of "NULL"?

I always asked myself this: Why should we use IS NOT NULL instead of <> NULL ? For when I do as in the second case, no result is found. Example: SELECT * FROM tabela WHERE campo IS NOT NULL Displays all rows, except wh...
asked on 18.08.2015 / 22:24
3
answers

How big is the line break?

Hello, I would like to know if there is a default size for the line break in HTML ( <br> ), whether it depends on the size of the font being used and how to change it.     
asked on 31.03.2015 / 18:38
3
answers

Inserting registry and retrieving ID generated by SQL Server 2012

I want to insert a record into a table, retrieve the ID that was generated by AUTO_INCREMENT and insert records into other tables, using that ID. But, I want to do this all using BeginTransaction . How could I do this? I'm doi...
asked on 23.11.2015 / 12:49
3
answers

How to convert the first letter of each word to upper case?

I would like to manipulate the way the person types the name when registering, to be left with only the first letter of the name in the upper case. The examples I found do not do exactly what I need. In my case, if the person types: joão...
asked on 10.09.2014 / 15:22
2
answers

The if statement in java is not working inside a method

I'm a beginner and I'm not getting my code to work as expected with the if / else. I'm using this command within a method and doing it as follows: private boolean AutentificaSenha(String s) { this.aSenha = s; boolean cond = this.s...
asked on 04.07.2015 / 00:04
2
answers

Alternative for Switch within Switch

I'm making a decision structure that depends on more than one variable, but readability and maintenance using if or switch are bad. What alternatives do I have for this case? Example of% nested% nested: switch (var1) {...
asked on 01.06.2016 / 00:58
2
answers

Responsive Font

I'm doing a theme for wordpress and I put the font with the size of 5em which is around 80px , but when I test on my cell with 320px wide, the font is broken and ugly, I wanted something that would make the font automatically fit in...
asked on 26.07.2016 / 16:29
3
answers

What is the function of the "!" (exclamation) operator? [duplicate]

In this method: public boolean aplicaDescontoDe(double porcentagem) { if(porcentagem > 0.3) { return false; } else { this.valor -= valor * porcentagem; return true; } } What does the ! operato...
asked on 18.01.2016 / 20:42
2
answers

Catch only one div from another page via jQuery

Paste content of another page by javascript or jquery In another question I wanted to know how to get content from a page. In this I wanted through this code to get only a <div> instead of the whole content. Let's say I want...
asked on 17.06.2015 / 16:37