Search:

Type: Posts; User: Chromejuice

Search: Search took 0.29 seconds.

  1. Re: Need help with simple calc java program

    If you haven't yet, you probably will soon, learn try/catch logic. InputMismatchException is being thrown because your feeding an int variable something that is not a int. That goes for any kind of...
  2. [SOLVED] Re: My chat program's multi threaded server keeps on throwing exceptions when calling nextLine();

    Will take that into account! I finally understood what the bug was... I made the Scanner static so I believe every thread was sharing the same Scanner.
  3. [SOLVED] Re: My chat program's multi threaded server keeps on throwing exceptions when calling nextLine();

    Nvm error has been resolved from using magical logic. Somehow my teachers identical code manages to run it flawlessly... : /
  4. [SOLVED] My chat program's multi threaded server keeps on throwing exceptions when calling nextLine();

    package chatprogram;

    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    import java.net.Socket;
    import...
  5. [SOLVED] Help ending client program from the server

    Homework assignment to make a simple client/server program in which the user has commands to ask for the line of a text file, ask for a random line, count how many lines, and leave the server.

    So...
  6. Replies
    132
    Views
    22,441

    Sticky: Re: 500 Ways to Print 1 to 10

    public class GiveMe10 {
    enum GiveTen {one, two, three, four, five, six, seven, eight, nine, ten};
    public static void main(String[] args) {
    GiveTen[] num = GiveTen.values();
    for (int i = 0;...
Results 1 to 6 of 6