john
JCHJava Community | Help. Code. Learn.
•Created by john on 11/15/2024 in #java-help
AVL trees
195 replies
JCHJava Community | Help. Code. Learn.
•Created by john on 11/15/2024 in #java-help
AVL trees
updateHeights(restructureNodeOnRemove);
195 replies
JCHJava Community | Help. Code. Learn.
•Created by SummerPsycho on 11/15/2024 in #java-help
Flow chart to Java.
"""
//name this file program2 or it will not work
import java.util.Scanner;
"""
8 replies
JCHJava Community | Help. Code. Learn.
•Created by john on 11/15/2024 in #java-help
AVL trees
195 replies
JCHJava Community | Help. Code. Learn.
•Created by john on 11/15/2024 in #java-help
AVL trees
195 replies
JCHJava Community | Help. Code. Learn.
•Created by john on 11/15/2024 in #java-help
AVL trees
195 replies
JCHJava Community | Help. Code. Learn.
•Created by Edmon on 11/14/2024 in #java-help
Testing Framework in Java
JUnit
10 replies
JCHJava Community | Help. Code. Learn.
•Created by StremesJ on 11/11/2024 in #java-help
Need Help with java ASCII art - can anyone try this and then talk me through it. Please and Thanks:D
Program 4. Seven Segment Display (20%)
In the file SevenSegment.jsh, write a method with the signature:
void display(int n)
that, given a number, displays ASCII art of that number in the style of an electronic “seven
segment display”. For example:
display(28);
-- --
| | |
-- --
| | |
-- --
You may assume the number is a non-negative Java int.
Hints:
Use n % 10 to get the right-most digit of a number. For example, 123456 % 10 == 6.
Use n / 10 to chop off the right-most digit of a number. For example, 123456 / 10 ==
12345.
To help your program draw the ASCII art, you should use the following method that, given a
digit d and a line number n (from 1 to 5), returns a String representing line n of digit d.
29 replies
JCHJava Community | Help. Code. Learn.
•Created by Akif on 10/30/2024 in #java-help
Module Not Found, when doing "mvn clean install"
1275 replies
JCHJava Community | Help. Code. Learn.
•Created by Akif on 10/30/2024 in #java-help
Module Not Found, when doing "mvn clean install"
So when i add it like this:
:runApp
mvn -pl use-guiFX exec:java -Dexec.mainClass=org.tzi.use.mainFX.MainFX -Dexec.jvmArgs="%VMARGS%" -Dexec.args="%*"
I get following:
java.lang.NullPointerException: in
(MainWindowFX.java:159)
which is this:
inside MainWindowFX
1275 replies
JCHJava Community | Help. Code. Learn.
•Created by Akif on 10/30/2024 in #java-help
Module Not Found, when doing "mvn clean install"
before it was using this methode
1275 replies
JCHJava Community | Help. Code. Learn.
•Created by userexit on 10/30/2024 in #java-help
How to create custom id generator for primary key in springboot
@Override
302 replies
JCHJava Community | Help. Code. Learn.
•Created by Dosage on 10/12/2024 in #java-help
what code I'll write?
import java.util.Scanner;
5 replies
JCHJava Community | Help. Code. Learn.
•Created by Yarden on 10/10/2024 in #java-help
I've created 1 client server, but everytime I'm exiting the server I can't connect anymore
76 replies
JCHJava Community | Help. Code. Learn.
•Created by Yarden on 10/10/2024 in #java-help
I've created 1 client server, but everytime I'm exiting the server I can't connect anymore
socket.close();
inputStreamReader.close();
outputStreamWriter.close();
bufferedReader.close();
bufferedWriter.close();
System.out.println("Socket closed: " + socket.isClosed());
76 replies
JCHJava Community | Help. Code. Learn.
•Created by Yarden on 10/10/2024 in #java-help
I've created 1 client server, but everytime I'm exiting the server I can't connect anymore
76 replies
JCHJava Community | Help. Code. Learn.
•Created by ! Slayer on 9/27/2024 in #java-help
I am getting an error when on my workspace in eclipse
221 replies
JCHJava Community | Help. Code. Learn.
•Created by ! Slayer on 9/27/2024 in #java-help
I am getting an error when on my workspace in eclipse
Modify Player Capabilities: Create methods to handle the player’s ability to walk on water and climb walls.
@SubscribeEvent
221 replies
JCHJava Community | Help. Code. Learn.
•Created by ! Slayer on 9/27/2024 in #java-help
I am getting an error when on my workspace in eclipse
Register a Key Binding: Use the ClientRegistry to create a key binding for the "K" key.
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.event.InputEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraft.client.options.KeyBinding;
@EventBusSubscriber(modid = "walkonwater", value = Dist.CLIENT)
221 replies