I think Scanner(System.in) doesnt solve my problem. I am connected via command line in windows and i am sending commands.
Type: Posts; User: vviston
I think Scanner(System.in) doesnt solve my problem. I am connected via command line in windows and i am sending commands.
I just start the server and connect to it using windows command line: telnet localhost <portnumber>. I have no GUI. I just ned to know, how to get username and password from command line and save it...
Hi, i would like to add 2 methods. Username and password. Client enter the username into the command line and server saves it. Then client enter the password. The password should be sum of ASCII...
It works now ! :) The parametr Socket s shouldnt by there :)
Hi, i wrote this code, but when i connect via telnet, the server gives me no response :/ Please help ?
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:371)
at java.util.ArrayList.get(ArrayList.java:384)
at...
Hi, i have passed my exam from java programming, but i have to solve one more homework. Its about B-tree implementation :/ i dont really know, how to do it. I have a few lines of code but its no...
My problem is, that it doesnt work...i just want add two arrays and save it to the new array. And i dont know how i can use this function with the specific numbers ?
public static int[] arrayAdd(int[] p, int[] q) {
for (int i = 0; i < p.length; i++) {
for (int j = 0; j < q.length; j++) {
int add [] = p[i] + q[j];...
package du1;
import java.util.Scanner;
public class Du1 {
/**
* Zde je metoda resici problem faktorialu
* Doplnte spravne obsah metody.
*/