Questions tagged as 'java'

0
answers

"Expected an operand but found const" when trying to run a JavaScript script using ScriptEngine

I'm trying to execute a javascript method from a java project. The logic I used I picked up on the internet and it looks like this: final String javascript = "/home/douglas/workspace/node/nintendo-switch-eshop/index.js";...
asked by 11.12.2017 / 19:29
1
answer

Android - Save and update String sent from one activity to another

// I can send and receive two different values in one @Override     public void onBackPressed() {         if(checkBox.isChecked())         {             String trueThumb_check = "checked_thumb";             Intent i = new Intent(getBaseContext...
asked by 12.12.2017 / 18:35
2
answers

Add Elements from one class to one arraylist in another class

I have a class Ticket , which creates a ticket. and I have to make a CustomerService class with a ArrayList of Ticket type, which I called tickets and places all tickets created in this ArrayList. Ticket class constructor:...
asked by 12.12.2017 / 14:23
0
answers

Create xml elements within activity_controller

I have a program that has a dropdown with 3 options. (Option 1 has the value 1, Option 2 value 2 and option 3 value 3). Depending on the option selected, I need to create TextEdits below that dropdown. Example: If I select option 2 of Dropdown...
asked by 05.01.2018 / 16:53
1
answer

Problem starting JavaFX application

Hello, I'm trying to create a simple application in JavaFX, everything was working until nothing started to give trouble when trying to start the program. You are giving the following exception: Exception in Application start method java.l...
asked by 05.01.2018 / 13:01
3
answers

What is a View on Android?

Android visual components such as EditText , Button , and others have Listeners to handle events triggered by user actions. Thus, in the method corresponding to the event, it is always necessary to pass a View as a parame...
asked by 16.09.2017 / 01:57
1
answer

How to exchange data between a webpage with App using Firebase

I have a web page where I want to receive information from an App or exchange information between them but using Firebase, the App sends the information to the web page and the user responds with a confirmation message but all with the Firebase...
asked by 08.12.2017 / 13:36
1
answer

I can not open a message sent by firebase

I can send a firebase notification to my App but I can not open that same notification within the actidity responsible for the arrival of this notification     
asked by 06.12.2017 / 15:09
1
answer

Create more than one variable using the scanner command

I tried a google search but I did not get an answer that would lighten my head, I'm starting to study java and I came across the following problem: Create a Java program that reads 10 names and their salaries from the keyboard and then shows...
asked by 22.12.2017 / 14:32
2
answers

Problem in my search engine's code

I can not use searchview, I decided to use an edittext and a logic that I found in a forum, MainActivity.class public void CarregarEncontrados() { int textlength = et.getText().length(); //Limpa o array com os estados encontrad...
asked by 22.12.2017 / 03:03