I've been researching how to validate e-mail, dates, hours, etc. And in the case of email, I found a code like this: /^.+@.+\..{2,}$/; . He is incomplete. But I wanted to understand what these symbols are, and what do they represent to val...
There are several ways to store data for a given application, and some of them are:
Disk Storage (HD). It can be a text file, XML, or a
database file of some DBMS.
Cloud Storage. It has some services that allows
store data for a Cloud appl...
I need to make a calculator, which works like windows. I am having trouble at the moment the user can change the type of operation that he wants to perform.
For example, if he typed 10 + and wants to change the signal from + to -, he clicks t...
My program gave this problem when I tried to create a stack (database), to store strings in my Android app
package com.project.meuapp2;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bu...
I have a scenario with the following entities: Treinamento , Curso and Aulas .
A Treinamento has a ManyToOne relationship for Curso .
And Aula has a ManyToOne relationship to Curso .
I want...
The app has two buttons that when clicked add an item to a listView (bow and sword), but would like that if the item of each button was already present in the listView, it was deleted.
package genesysgeneration.list;
import android.support.v7...
I need to create a query with the insertion of several lines.
Change an array / list:
arrayOriginal = [10,20,30,40]
valueChave = 999
The return must be:
arrayNew = [(valueChave, 10), (valueChave, 20), (valueChave, 30)...
How do I invert the values of a vector?
Example:
1 2 3 turn 3 2 1
I'm currently trying to make a method of type ..
public static int [] vetorInvertido(int [] vet){
int [] vetInvert = new int[vet.length];
for(int...
I'm having trouble implementing multiplication and division
on my calculator with graphical interface.
Regardless of anything I put using any of the
operators (/ and *), the output result is 0.
Sum and subtraction are working normally....