determine whether a character is in a given string?
Yes
I want to set the first element of my array to 4, and the rest to 10. Is there a better way to do this? int[] arr2 = new int[26]; arr2[0] = 4; Arrays.fill(arr2,1,25,10);
In these examples with one-liners "read this property" or "write this property" we have great readable code. Why do you think that it's bad that for example def textInFile = f...
Hello, I have problems with gradle, maybe because I dont understand the dependsOn and the tasks. This is my build.gradle.kts code: tasks.register<Copy>("extractJar") { de...
Is there any specific order in which Connection object, ResultSet object and PreparedStatement object need to be closed ?
This is more an opinion than experience talking. I've heard of guys getting jobs faster taking the Python route compared to Java. I don't know though. Again, it's my opinion...
Hey guys, is greenfield Java fun to code and on work on the product projects?
public byte[] readVideo(String filePath, int start, int end) throws IOException { Path path = Paths.get(filePath); try (RandomAccessFile file = new RandomAccessFile(pa...
Hey techies. I'm learning Spring Security. I saw somewhere being advised to separate User.java from an implementation of UserDetails, say, MyUserDetails.java My question is,...
Hi, for the ones who know spring data and hibernate, imagine the example of invoices and invoice rows. If I do the query in SQL, with joins I will get as many rows as there ar...
Why you recommend Lombok?
Обсуждают сегодня