Most voted "java-8" questions
Java 8 was released in March 2014 and contains new features, enhancements, and bug fixes to increase the efficiency of Java program development and execution.
Learn more…208 questions
Sort by count of
-
-2
votes3
answers724
viewsIgnore the first line of a file
I would like to know how to ignore a line in a file .csv, because the first line is a kind of title. try (BufferedReader br = new BufferedReader(new FileReader("C:\\temp\\apartamentos.csv"))) {…
-
-2
votes1
answer643
viewsHow to browse a java chained list
I need to go through a chained list to compare whether the number the user will enter is equal to an attribute of a class (doctors) that has a chained list. I have the following Classes: Node,…
-
-2
votes2
answers145
viewsWhat are the disadvantages of protecting a string of objects from a nullPointerException using the optional map?
For example: public static void main(String[] args) { Cidade cidade = new Cidade(); Estado estado = new Estado(cidade); Endereco endereco = new Endereco(estado); Loja loja = new Loja(endereco);…
-
-2
votes2
answers175
viewsReturn of prime numbers?
I’m having trouble with some returns stating that some prime numbers are not primes. What is the error in my code? package capitulo4.laboratorio; import java.util.Scanner; public class Laboratorio1…
-
-2
votes0
answers28
viewsError importing package and running code in eclipse JAVA IDE
Hello I’m new in java and I have a problem, I’m trying to run a java code I saw on internet recognition and sound pattern but there is a problem when I replicate it in IDE import everything and do…
-
-3
votes1
answer87
viewsOCA Java 8 certification, does it exist in Portuguese? Where should I pay for the test and at what institution?
Good afternoon my comrades. I am interested in making the JAVA 8, OCA certification test, only I do not speak English, there is proof in Portuguese, if there is where I must pay and in which RJ…
-
-3
votes1
answer78
viewsMethod is running 3 times
I created this method for a validation when the user will type the option that appears on the screen: private int menu; private int menuImprimir; public int getMenu() { return menu; } public void…
-
-3
votes2
answers1946
viewsConverting a String to Localdate
I was taking a date in a jLabel in the format dd/MM/yyyy and trying to convert it to Localdate and then use it with Localdate methods, but I ran into some errors and found nothing on the internet…