Why is this line required in Java?
fout.close();
Context:
LinkedList values = new LinkedList(classe.getTurma().values());
if (!values.isEmpty()) {
FileOutputStream fout = null;
String FILE = "TURMA";
try {...
// I want to just not let you enter single quotes and double quotes
$('#bot').keypress(function (e) {
var regex = new RegExp("^[a-zA-Z0-9-]+$");
var str = String.fromCharCode(!e.charCode ? e.which : e.charCode);
if (regex.test(str)...
I need to create an application where the data will be saved to a local xml and then sent to a server using a wcf. But I have the following doubt what I do in the client and what I do in the service (wcf). I'm new to this area and I have no idea...
I need to read the name of the files contained within a package, for example, read the name file01.txt , as in the image below:
So I can scroll through the arquivos package without having to name a file for reading.
Well, there's a home page that has 3 filters:
(select) Property Type: House or Apartment
(select) Business Type: Buy or Rent
(input) City or neighborhood
The person enters the 3 search parameters and clicks the "search" button. Next...
Can someone tell me if it is possible to create a regular expression with the following features:
value between 31.000000 and 43.000000
The value may have 6 decimal places, but should be in the range of 31 to 43.
What I have is the foll...
Could it be a problem to use free() on a pointer that was not allocated with malloc() beyond the unnecessary itself?
void funcao (int par)
{
char *palavra;
if(par%2 == 0)
{
palavra = malloc(3*sizeof(char))...
I'd like to know in a simpler way what these types of attacks are.
Keylogger
Brute force attack
Rubber Hose Cryptanalysis
Sql injection
And please, if you can go deeper into the subject, you could tell me a simple example of how to...
I made the following calculations on the calculator:
arctg(50/10) = 78,69°
However, when doing in code, using the function Math.Atan , the result is as follows:
Is there any other way to do the Tangent Arch calculation?