Questions tagged as 'java'

1
answer

How do I get an item from a list and move with a finger to another position on Android? [closed]

I have a list and would like to move the first item of it to the last position by dragging with the finger, could someone give some suggestion how to do this on Android?     
asked by 25.07.2017 / 22:56
1
answer

print numbers using ToString in java

The project scribble plus it did not print the numbers inside the [] ... package tostring2; import java.util.Arrays; public class ToString2 { public static String ToString2(int [] a) { int idades [] = {12,20,30,40}; int...
asked by 10.08.2017 / 22:54
1
answer

Add and display intent in another class

Well, I wanted to know how I can add this (intent) and how to start it at the end of the program in another Class. public class Main2Activity extends AppCompatActivity implements View.OnClickListener{ int points = 0; Button next;...
asked by 23.08.2017 / 05:27
2
answers

Pass random values to Matrix

I have a matrix with 30 fixed values, I wanted to know how to generate these same 30 values, however random, if possible with value limit between (2400, 400). How the array is currently: private int[][] coordenadas = { { 238...
asked by 20.10.2015 / 13:49
1
answer

I can not send values to WebService .NET

This is a simple dollar conversion web service: public class Callsoap { String resultado; String erro = null; public String Call (String ip, String porta, float n){ String SOAP_ADDRESS = "http://"+ip+":"+porta+"/webservice/WebSe...
asked by 20.11.2015 / 01:11
1
answer

Replace numbers by letters inside the ArrayList

I'm creating a calculator where, I want the numbers inside ArrayList , to be replaced with letters in textView . Example: 1 = A , 2 = B , etc. With the code below, I got this by typing the numbers. That is, textView...
asked by 06.10.2015 / 17:44
0
answers

How to run a task every month using Java [closed]

Hello, I would like to know how I can schedule a task to run every day of the month. Thank you.     
asked by 04.05.2017 / 23:44
1
answer

How to create a combo with 2 values? [closed]

I'm completely lost, I'm trying to create a combo box, where I can display "a value / text" plus, that by giving a getValor in it, I can get another value. For example, I wanted to display, "Item 01", more when picking up the value, "item 01", w...
asked by 18.03.2018 / 22:14
1
answer

Problem with Mask of CNPJ in the print in the database (solved)

This is the class that validates the CNPJ: package br.com.Sistema.meuProjeto; import java.util.InputMismatchException; public class ValidaCNPJ { public static boolean isCNPJ(String cnpjFornec) { // considera-se erro CNPJ's formados por um...
asked by 10.08.2018 / 01:05
1
answer

Error updating package in Gradle project

In a Gradle project, there was a need to upgrade build.grade to another format which caused an error: build.gradle /* * This build file was generated by the Gradle 'init' task. * * This generated file contains a sample Java Library pro...
asked by 07.08.2018 / 22:05