Questions tagged as 'java'

2
answers

Sort a List in java that contains null values

Good morning! In my List , when I do the sort order I would like the null values to last. I'll show you an example to get clearer: Code output (in this case the word would be the letter after the number): SEM ORDENAÇÃO: 10c 2...
asked by 24.01.2018 / 14:20
3
answers

Polymorphically manipulating subsclasses

How does subclass manipulation work for the superclass? In this next code,% w / o of a class, prints the values of other classes. zoo.java public class zoo { public static void main(String[] args) { Vaca mimosa = new Vaca(); Gat...
asked by 06.08.2018 / 21:32
1
answer

Use Middleware in Systems Integration [closed]

In the company where I work, we need to integrate our desktop system, which has a local database with a system that will be running on a cloud server. Our scenario is 2000 clients performing asynchronous integration. The back-end application...
asked by 17.02.2017 / 21:10
2
answers

What's wrong with this while? O || it's not working [closed]

Scanner input = new Scanner(System.in); String str = input.nextInt(); while ( (str.nextInt() != 5) || (str.nextInt() != 10) ){ str = input.nextInt() } The code should invoke the nextInt() method every time the user types a number ot...
asked by 21.03.2016 / 19:06
1
answer

How to save a PDF file in the database and make it available for download?

I'm developing a web application using PlayFramework, and I'm needing a file that will be a kind of guide (documentation) for the users that will use my application to download or view by the browser itself to guide you in the handling of the pl...
asked by 02.01.2018 / 14:20
0
answers

Passing Spring object to JSF

Well, I have a class that is almost all populated with Facebook data, but there are two missing attributes that have to be populated from data coming from a form. Here is the form: central/cadastro.xhtml <?xml version="1.0" encodi...
asked by 05.04.2015 / 04:10
1
answer

How do I set position of a cursor in the Onchanged of a Customview in a ListView?

I'm using a customview call android-spinnerwheel . I inserted it into a listview linked to a CursorAdapter . If I use the OnitemClickListener of the ListView, the cursor goes to the corresponding position in the list and it loo...
asked by 08.02.2014 / 01:01
3
answers

Convert string to blob and save to bank

I'm developing a mobile application that has a form where the user can attach an image, the image is being sent as a string via rest to the server and saved in the blob-type database, however, I'm having trouble converting from string to blob fr...
asked by 11.01.2018 / 16:47
1
answer

Python command subprocess.check_output

I'm calling a program in Java via Python's subprocess.check_output command. It's not working. In this command I pass a file as a parameter. Is there something wrong with the command below? import subprocess def chamaProg(arquivo):...
asked by 06.05.2015 / 14:53
0
answers

Problem with Firebird 3.0 connection with Java 1.8

I'm having problems trying to connect to Firebird 3.0 using Jaybird 2.2.7, while running the Firebird 2.5 test I can connect to the database, but when I try to log in to Firebird 3.0, I enter the exception. Following the images in the excepti...
asked by 13.05.2015 / 15:37