Skip to content
Advertisement

Tag: java

Java client hangs if I open two clients at once

I’m trying to build a chat-like thing, and the idea is that whenever someone types, it gets sent and printed on every client connected. If I only open the server and one client, everything runs smoothly — whenever I send something from the client, it goes to the server and then it comes back and gets printed on the client.

Java Income Tax Calculator need to add prompt to add more customers

I have a java program that calculates users’ income taxes, with some help the project now runs correctly, but I am supposed to add an option for the user to process additional customers once they have finished with a customer by entering ‘y’ into a prompt. I need the prompt to say: “Process another customer? (y/n)?” Since the user could

How to sum elements of List

I want to sum the possibilities (of some characters) in the context of Shannon-Fano Algorithm. Example input/output Given poss as a List of Strings filled with possibilities. For example the possibilities are as follows: and the sum must be 1 (after adding all the possibilities). What I already tried Following code is what I tried. But the problem is that

Java path problems, ‘java’ is not recognized as an internal or external command, operable program or batch file. (javac too)

I know there are lot of questions like this but i tried their solutions and nothing. While i try to javac file.java i get ‘javac’ is not recognized as an internal or external command, operable program or batch file. And java file ‘java’ is not recognized as an internal or external command,operable program or batch file. My environment path is

Advertisement