Questions tagged as 'java'

2
answers

How to connect via FTP on Android?

I am trying to connect locally to the FTP server to recover some files and read them. The program peta when making the connection to the server "localhost".    02-02 11: 34: 38.472 3867-3867 / com.mimapa E / AndroidRuntime: FATAL   EXCEPTI...
asked by 02.02.2018 / 09:19
2
answers

Doubt about Boxing and Unboxing in Java

I have been practicing the topic of Boxing and Autoboxing in Java and I have a doubt. I know that each type of primitive data has its "Wrapper" class to be treated as an object. But specifically in the following code: public static void main(S...
asked by 18.04.2018 / 05:03
1
answer

Copies $ .class in jar files

When I compile a jar with maven, but when I unzip it, it generates me copies of several files with the symbol $.class , how can I omit this type of copies? Example: dao.class dao$1.class     
asked by 20.04.2018 / 15:26
1
answer

Close a BufferedReader

My question is whether it is strictly mandatory to close a BufferedReader with .close() . I am practicing with reading and writing files and, for example, if a BufferedWriter does not close it with .close() it does...
asked by 19.04.2018 / 13:44
1
answer

Change color StatusBar

How can I change the color of the StatusBar from the java class? For example, to change the color of the navigation bar (lower back, home and menu) would be like this:    getWindow (). setNavigationBarColor (getResources (). getColor (R.color...
asked by 30.01.2017 / 23:04
2
answers

Print elements of a For loop in AndroidStudio [closed]

I have created a program that receives the elements of an arithmetic progression (First term, ratio and number of terms) and returns all the terms of the progression and the sum of those terms. The sum shows it well, but when I want to see all t...
asked by 26.04.2017 / 02:00
2
answers

How to clean a field from a textView?

Hello in the code I am using a EditText and several TextView , the point is that I am trying that when the value of EditText this empty clean the fields of TextView . That is the code with which I am trying it Text...
asked by 22.04.2017 / 00:14
1
answer

Java Error after pressing button to add fields in a JPanel

Thanks for informing me. I have transcribed the question in case there were more people with the same problem. TITLE: Java error after pressing button to add more fields to a form. Can you help me with the following error, please? Would any...
asked by 24.12.2016 / 17:18
4
answers

Go through an ArrayList of Items

Good morning, I can not go through an ArrayList that is made up of Items. Inside these Items I keep different information such as game name, launch date, URL, etc ... With a foreach loop I can enter each Item, but I can not get specific in...
asked by 27.02.2017 / 11:35
1
answer

JButton with round edges

My question at this time is whether there is any method or class predefined in java to be able to create a button with round edges.     
asked by 22.04.2017 / 01:24