Questions tagged as 'java'

2
answers

Java - Could not find main class

The code below does not compile: package app1; public class main{ public static void main(String args[]){ System.out.println("Hello World!"); } } The following message appears in the terminal:    Error: Could not find or load ma...
asked by 11.11.2017 / 05:48
1
answer

The parameter name does not match the last variable

void countdown(int max, boolean output) { for (int i=max; i>=0; i--) if (output) println(i); } void setup(){ int top = 20; countdown(top, true); } Is there anything wrong with the syntax / writing of the above code? The...
asked by 14.11.2017 / 04:33
2
answers

how to put monetary mask for EditText in an Android application?

How to put monetary mask for EditText in an Android application only with numeric values without the R $, that is, to print in EditText 2.99? If you have an example.     
asked by 14.11.2017 / 12:46
1
answer

Creating row filter "dynamic"

I'm using RowFilter to create filters for certain columns in my table. My intention is to pass the components I want to use as a "bar" search by parsing, creating them dynamically, and in the same way apply filters to them, that correspon...
asked by 10.09.2017 / 18:06
2
answers

Open BLOB in php

I have a field of type BLOB to save images in my mysql, the image comes from an android APP via POST, the way the BLOB string arrives I saved in the bank. When I try to show the contents of this BLOB in a page, everything goes blank. PHP code t...
asked by 11.09.2017 / 18:52
2
answers

Do you need to use the AppCompat and Support Design libraries when the minimum API is 21?

Recently I upgraded an application that I'm developing to use a minimum API at 21 (Lollipop), before it was at 19 (KitKat). In the case of KitKat I needed to use AppCompat and Support Design to enjoy the DrawerLayout, CoordinatorLayout, Float...
asked by 13.09.2017 / 16:55
1
answer

Can not cast from Object to JSP

I am developing an application using JSP and servelt in which I want to get the total amount of records from my tb_motorist table, I created a servelt in which I passed the method that makes the query and created a session but when I get the ses...
asked by 13.09.2017 / 00:12
2
answers

How to convert json to object and put in a system.out.println?

I have the following code that returns a JSON: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import classes_json.JSONObject; class Connection...
asked by 26.08.2017 / 16:55
2
answers

How to read the json below with the GSON library [duplicate]

How to read the json below creating the class profession with the instances of the class I would like it to be in GSON without using HashMap - KeySet() ; { "profissao": { "jornalista": [ "escritor",...
asked by 29.08.2017 / 16:20
1
answer

How to manipulate ArrayList of Java objects

The program consists of adding students and for each student add disciplines and for each discipline add notes. In the end, the program should return all students and their subjects, and for each subject the average, standard deviation and varia...
asked by 06.10.2017 / 21:40