Questions tagged as 'java'

1
answer

Accommodate elements in repeater

I am using <ui:repeat> to display the data of a list of an object called DiscountPorWeight, which has 3 attributes: An Object called Service Type An integer called kilograms A double called cost The code I use to sh...
asked by 22.03.2017 / 23:16
1
answer

Making Arcs in Java

I'm doing a drawing in java which requires arcs, however these are costing me a lot of trouble to understand in terms of their coordinates. I would like to know how to guide me in g.drawArc(); to create the drawing shown in my program, bo...
asked by 07.03.2017 / 03:59
1
answer

How can I store a RadioButton in a database?

I'm doing a database on a survey, and this is a multiple choice, but if I want to store the multiple choice answers, if the course is a INTEGER , the name is TEXT , what can the RadioButton be? Thanks. I add this for someone to help...
asked by 06.03.2017 / 12:42
2
answers

Count number of characters that have been entered into the console

When I run the program by console, I would like it to count the number of characters I have pressed, by the time I reach 13, I would like to press ENTER to enter the number entered. The example of the method is this: InputStreamReader i...
asked by 06.03.2017 / 14:18
2
answers

Convert data from a spinner to String

How can I convert the data from Spinner to String ? Spinner cur = (Spinner) findViewById(R.id.spinnerp);     
asked by 06.03.2017 / 15:51
3
answers

How can I use a string of an activity, in another activity

I have a String value in my class encuesta.java , and I want to use that String in class res8.java , both are Activity . The two classes are in the same package. Manifest: <?xml version="1.0" encoding="utf...
asked by 06.03.2017 / 17:00
2
answers

Show Figure "X" in a matrix, JAVA

I have to make an X-shaped matrix using only numbers 9 and 1 where the number 1 is the one that has to form the X. The user chooses the size of the matrix, I have a bit of the script where I have problems in the for loops and when I run the prog...
asked by 23.02.2017 / 18:42
2
answers

Convert java object to map

I have an object that has about 60 attributes that are both of type String and of type double, plus a few that are of other types, and by chance I need a map where the keys are the names of the attributes of the object and value its values, howe...
asked by 14.03.2017 / 21:57
2
answers

Dynamic URL for a web application

I have a web application that is about to go into production in my company, and I use url's like the following: http://170.70.141.252:8080/sisalbm/admin/dashboard.jsp Where I indicate the ip of my machine and the port of connection (Glassfi...
asked by 14.03.2017 / 20:43
2
answers

Missing Styles error

I need someone to help me: I'm starting to learn how to program in Android Studio and I just installed version 2.2.3. I used to have version 1.3 and everything was super good until I changed the version. When I open a new project I get this:...
asked by 02.03.2017 / 17:39