All Questions

1
answer

Char comparison, ignoring case sensitive

The proposal is to create a program that compares the n positions of the two vectors and returns whether they are equal or not. So far so good, but I do not know how I can ignore case sensitive . Here's what I've done so far: //Questão 7...
asked on 09.07.2016 / 03:10
1
answer

What is the constant pool in Java?

I'm reading the Java Virtual Machine Specification to dig a little deeper and I did not quite understand what the constant pool table is. For example, when speaking of the run-time constant pool the specification quotes this table:    A run-t...
asked on 29.07.2016 / 17:10
1
answer

How to implement a destructor in JavaScript?

In languages like C ++, we have the possibility to declare a destructor for a class, so that certain actions are performed when an object of this class is destroyed. How to do this in JavaScript? For example: class minhaClasse { constru...
asked on 06.07.2016 / 15:32
2
answers

How do I change the 3rd and 5th occurrence of a word in a string

Someone can help me in this, I need to change the 3 and 5 occurrence of a word in a text, I can not change the other occurrences. Texto=input("Digite o Texto: ") #recebendo o texto do usuario Palavra=input("Digite a Palavra: ")#Recebendo a pa...
asked on 14.08.2016 / 19:11
1
answer

How to limit and display the number of characters in a JTextArea

I have a supplier registration window, and I would like to enter a jTextArea so that the user has the option to enter any comments about the supplier. The idea is to limit the number of characters to be typed and show the amount...
asked on 14.07.2016 / 20:15
2
answers

How to modify the value of the fields of a column?

I have a simple question but I could not find a solution. In the same way I can when I use select to bring an empty column using select a.x,NULL as y,a.z from DADOS a , how can I make a column instead of having only NULL ,...
asked on 12.08.2016 / 01:47
3
answers

NameError: name 'ana' is not defined

I'm a beginner in python and needed to do a program that checks if a given word is palindromous. The program would then be: #encoding: utf-8 palavra = input ('Palavra: ') if palavra == palavra[::-1]: print ("%s é palindrome" %palavra) else...
asked on 13.07.2016 / 04:15
1
answer

C ++ - Sorting particular points of a rectangle in a vector?

I have a project in c ++ where I should map regions of an image using the mouse click. The issue is that I need to get the mapping points in a specific storage order, as in the image below: My problem starts at the moment of storing thi...
asked on 19.08.2016 / 06:27
1
answer

How to assign another 60 days on a date compared to today's date in PHP?

I'm assigning today's date in a variable, I'd like to know how do I assign today's date plus 60 days. What would the syntax look like? $dateIni = date('Y-m-d');     
asked on 28.06.2016 / 20:23
1
answer

Check if there is a Jquery internet connection

Does anyone know of a good function or a good way to check for an internet connection before making an ajax request?     
asked on 21.07.2016 / 14:03