Questions tagged as 'java'

1
answer

How to display html content in a dataTable

I have the message field in an Editor that after inclusion is shown in a dataTable. <rich:editor value="#{solicitacaoImpressaoBean.solicitacao.mensagem}" toolbar="full" style="margin-bottom: 1em"> DataTable: <rich:dataTable id="...
asked by 06.11.2017 / 12:16
1
answer

Operations between various classes

Well, I'm relatively new to programming in Java! It is the following I have a Super Class of User name of which there are 2 subclasses Citizen and Autarchy, within the class Citizen I have created an ArrayList that will guard the Prizes of this...
asked by 05.11.2017 / 04:08
1
answer

Java. - How to display a string vector from the menu option?

I created 3 vectors, one for name, and the other for day and month of birth. I fill in the 3 through the first menu option I made with switch case , the second option would be to display only the names of who is registered (inserted) in...
asked by 06.11.2017 / 13:58
0
answers

Error: Could not find or load main class MainEX1 "[duplicate]

Question asked previously that gave basis to this error The error in question is the use of a JAVA program using the Linux Terminal. I have already compiled classes, the error appears when I try to run those same compiled classes previ...
asked by 18.11.2017 / 16:23
1
answer

How to associate an ImageView with a Class?

Although it is something generic, to try to clarify my doubt, I will give an example. For example, I have a HashMap<Integer, Piece> with size 64, where Integer would be position and Piece, class for a piece of board. And I have a...
asked by 18.11.2017 / 02:49
0
answers

Doubt: FATAL EXCEPTION

I have 2 activity a of the contacts and the contacts cadastro, the code is like this: package com.example.marcio.agendacontatos; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; im...
asked by 11.11.2017 / 00:53
2
answers

Error .class expected

The program is supposed to ask for a number between 1 and 12. (I have not yet got the part to certify that it is between 1 and 12 but this is the easiest one. However it is supposed to write the code through functions (not that I I do not know h...
asked by 11.11.2017 / 01:22
0
answers

How can I change the DNS server of a device via the application?

I'm making an application to change the DNS server, both WiFi and mobile network, to android but I still can not figure out how to do it. I've already researched in several places, including in the documentation, but I do not know how to do it....
asked by 11.11.2017 / 18:52
0
answers

Save a frequency table to a file. (huffman compactor)

Hello, I'm developing a Huffman algorithm job, and I'm having a hard time working with the frequency table. In short, I need to transform the characters of a text into a frequency table to create the huffman tree. example: pineapple ... Th...
asked by 12.11.2017 / 04:48
0
answers

Android Studio. How to instantiate a method with a view in another class

I have a method in MainActivity2 : public void addfoto(View view) { // meu código bla bla bla bla } And I want to call this method in MainActivity . I'm trying this way but gets the code wrong: MainActivity2 m2 = new MainActivity2();...
asked by 15.11.2017 / 22:06