Questions tagged as 'java'

6
answers

Android apps development: what tools and language to start a project?

I'd like to venture into creating apps for Android. At first I would make one just for my own use. What tools would I need to set up my development environment? My application would use database, is there any more recommended? And the lang...
asked by 06.02.2014 / 14:33
3
answers

Why does the Scanner return an error in something that is expected?

Note that I typed a number, a text, and a number, as you request. import java.util.Scanner; class Ideone { public static void main (String[] args) { Scanner entrada = new Scanner(System.in); int valor1 = entrada.nextInt();...
asked by 14.12.2017 / 16:01
4
answers

Using the keywords Throws and Throw

How do I use the words Throws and Throw in a Java code?     
asked by 25.05.2014 / 19:11
3
answers

Why in Java is the size of an array an attribute of a String and a method?

In Java, the size of an array of any object can be obtained with length , which would be an attribute. But in the case of String is length() , a method. However, if you have a array of String , it uses length ,...
asked by 31.05.2017 / 02:18
3
answers

How to check if the end of the String is one or zero?

How can I check if at the end of a string it is 0 ? The problem with this code is that string can contain:    jrp_documento.jrp_doc_001provider | 0 I need to check if the end of the string is 1 or 0 . I have i...
asked by 08.08.2016 / 16:31
1
answer

What are Raw Types?

Reading and studying a bit about Kotlin, I found the following statement:    Raw are a big problem, but for reasons of   compatible they had to be maintained in Java, but Kotlin   for being a new language does not have this problem anymore....
asked by 17.08.2017 / 16:29
2
answers

Java memory heap

I would like to explain in a simple way what is the heap of JVM memory? I researched Google but had no clear enough answer.     
asked by 13.10.2014 / 19:29
1
answer

Select multiple with dynamic operation

I have a select with 4 options. These 4 options are the number of options that will appear in a multiple select. WhatIwantisassoonastheuserselectsthemostfrequentwordquantityoption,javascriptalreadyfillsthesecondselectwiththenumberofwordsselec...
asked by 27.01.2015 / 00:54
1
answer

Difference between Integer.valueOf (String) and Integer.parseInt (String)

I need to convert a String to int , and I came across these two options, which have an equal result. Is there any difference between them? Is there a rule / convention that says which to use or is indifferent?
asked by 09.12.2014 / 12:09
1
answer

How to find out the mobile operator of Android?

I'm developing an application in eclipse and I want it to work only on devices from a particular carrier. Any ideas how to check the carrier?     
asked by 31.01.2015 / 09:50