Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. You can come here to connect other devs, get help, help others and do many more things!

Join

java-help

❓︱qotw-answers

Mob Drops Giving Tools

I would like to make it so when i kill i zombie summoned with a redstone_block it drops it on death with that block only being able to be placed on a gold block

A UML check is required for assistancere

Recently, I am trying to draw the UML of my inheritance code. Is there someone who can help me with this?
No description

Saving file with marshaller

File appears in file system only after I stop the application, but I would like to use the file immediately after saving it. Fix? ```java @Service public class XMLTransformationService { ...

INTERFACES

Hello, can someone explain me the diference betwen Interfaces and heritage?

Ensuring method ordering in an async method

Hi, I have a question on something. I have something like this: ```...

build javafx project jar from github with maven

im about to make a new javafx project that i know im going to want to build with maven everytime i commit. this is the yaml i use for non javafx projects that works https://github.com/asdru22/3D-Graphics/blob/master/.github/workflows/maven.yml however the last time i made a javafx project i couldnt get it to build from github so i wanted set it up correctly this time if anyone had tips on how to do it. (using intellij btw)...

eclipse maven project error

It is object detection project using onnx model but there is error which i cannot solve ...so, help me to solve the error and run the project
No description

Java Beans

JavaBeans is no longer supported right? https://www.oracle.com/java/technologies/javase/beans-tools.html Is there some alternative or what happened with this API....

Why do i get TOO_MANY_REDIRECTS when trying to authenticate against my endpoint?

hello everyone. I have this nginx config: ``` server { listen 80; listen 443 ssl;...

Color value of a BufferedImage pixel

What's the fastest way of accessing the color value of a pixel in a BufferedImage (at given x and y coordinates)? I tried getRGB(), but it's too slow...

Sampling BufferedImage

So I have a bufferd image that I: - Convert into an int array via image.getRGB() - Convert into a ByteBuffer (1 byte per pixel) with a for loop running through that int array. (I only use 1 color channel) Now I need to sample the ByteBuffer, but I do not know which order image.getRGB() returned the pixels in. I tried doing this: ...

Be my Coding Buddy

Anyone wants to be my coding buddy? I really need one😔 so that I will feel like I'm not alone in this fight.. I understand the Fundementals of java but I sucked at analyzing how to make a project when the teacher we build one ps. code snippet not related...
No description

Integrating ImGui using Gradle or .jar files

I'm trying to follow GamesWithGabe's 2d game engine series, but I'm struggling to integrate SpaiR's ImGui. I've followed his tutorial (linked) exactly except I download the dylib files rather than dll because i'm on macOS. I tried both using 1.81.0 and 1.89.0 but neither work. Any help much appreciated! Link to tutorial: https://www.youtube.com/watch?v=Xq-eVcNtUbw...

Using Regex for spaces

Hello, I currently use !hasnext() to try and ensure that the input word doesn't have any characters other than letters, which works fine however I am not sure how to make it so that regex also detects whether or not any spaces are in the input...

Changing Colors And Hues

Can I, In Java, Change the color of a picture to a specific color of another picture? like I got two pictures, one in orange and one got blue and brown, I want to change the hues of the blue and brown picture to make the dominated color of the orange picture its color. Like A Sword From A Game, I want to change the color of that blue sword to orange and generate the png

Guidance for multithreading

I've recently completely core Java course, worked on a few small projects with Java and jdbc. And now completed multithreading, and understood most of the concepts how to use but: when to use this concept, when to create threads and apply all other things. how does using this thing make my project easy....

How to improve my quality of given code?

import java.util.Scanner; class WordSearch{ public static void main(String[]args) { Scanner value=new Scanner(System.in);...