Skip to main content
-1 votes
2 answers
69 views

I checked out the Java 10 option of "use local variable type inference" (JEP 286), but I think it is terrible to replace all type information with just the keyword var - was so much better ...
beagle's user avatar
  • 154
0 votes
2 answers
121 views

I'm looking to switch the default SDK of my project in IntelliJ IDEA to Java 10 specifically. However, when I navigate to the download JDK option within IntelliJ, I notice that there's no vendor ...
siddhartha agarwal's user avatar
0 votes
0 answers
555 views

I've been tasked to help manage an older java spring repository using java 10. Since java 10 are no longer supported I've been unable to use it on my laptop. I use IntelliJ IDEA as my IDE and have ...
Blue Birman's user avatar
0 votes
3 answers
2k views

Following is my code snippet: Scanner sc = new Scanner(System.in); int input = sc.nextInt(); var output = switch (input){ case 1 -> "one"; case 2 -> '2'; case 3 -> 3.14; ...
mps88's user avatar
  • 33
0 votes
0 answers
350 views

I have a problem with NetBeans 12.1 opening, but not showing anything, just opens on taskbar. I try to delete it and re-install but it still doesn't work. My Java version is 10.0.2. This is the ...
Rabi's user avatar
  • 21
-3 votes
2 answers
1k views

I have two objects: Employee E PTEmployee PE I need to do the following manipulation EV=E EV=PE I believe I would need to do the following: var EV = E But then when I set EV = PE, I cannot access ...
tmiliketurtles's user avatar
1 vote
1 answer
847 views

I have an BOLReference object as follows: private String ediTransmissionId; private List<WorkflowExceptions> workflowExceptions; And the inner WorkflowExceptions looks like below: private ...
Mira Devi's user avatar
1 vote
2 answers
2k views

class Demo3 { // instance variable var x = 50; public static void main(String[] args) { System.out.println(x); } } Reference: https://www.geeksforgeeks.org/var-keyword-...
Mamatha Silveri's user avatar
-2 votes
1 answer
44 views

I have two class .java but in pdcController.java I cannot do anything: Look the image: Look the icon are different in BandoService works all, but in .pdfController I cannot do anything (for example I ...
adsds's user avatar
  • 123
16 votes
2 answers
655 views

Both calls are correct: Collectors.groupingBy((String s)->s.toLowerCase(),Collectors.counting()); Collectors.groupingBy((String s)->s.toLowerCase(Locale.ENGLISH),Collectors.counting()); Since ...
Jean-Baptiste Yunès's user avatar
0 votes
0 answers
114 views

I am writing a Java SE 10 desktop software application. I use Hibernate 5.4.2 ORM framework on the embedded Derby DB. I would like to run fuzzy search on text, which could be in JSON format or even ...
ucas's user avatar
  • 487
3 votes
2 answers
1k views

Intellij IDEA shows type hints for variables created with the new 'var' feature from Java 10. However, inferred types are so long sometimes that the line length ends up exceeding the width guide as ...
Hertzu's user avatar
  • 195
0 votes
0 answers
142 views

package samples.study; /** * * @author */ public class Singleton { private Singleton(){} private static final Singleton instance = new Singleton(); public static Singleton ...
parthi's user avatar
  • 101
1 vote
2 answers
213 views

I'm looking for a bit of Java help here. I am trying to run MapTool on a Raspberry Pi 4. No mean feat -- I've installed ubuntu server, so I could get a 64 bit operating system. Then I had to build ...
TheDougMiester's user avatar
7 votes
1 answer
716 views

Background: OpenJDK have released a style guide for local variable type inference. I was looking for a checkstyle built in rule that addresses it but didn't found one. What I'm trying to get is pretty ...
Eran Medan's user avatar
  • 45.9k

15 30 50 per page
1
2 3 4 5
27