Search:

Type: Posts; User: vviston

Search: Search took 0.20 seconds.

  1. Replies
    1
    Views
    179

    Maven and IntelliJ theory

    Hi, i would like to ask what does exactly do the command mvn compile. What is happening with the code, when i write this command? And why is it necessary for running the code? And the next question,...
  2. Replies
    6
    Views
    290

    Re: What happens when i write this?

    My bad! Thanks ! :)
  3. Replies
    6
    Views
    290

    Re: What happens when i write this?

    Ok, and my next question...i understand, why this would by bad. But this is situation when i define Test t = new Extending(); so i can call t.getX(); but what if i define Extending = new Extending();...
  4. Replies
    6
    Views
    290

    Re: What happens when i write this?

    Now i can see, that both constructors are "executed" when i run main method. But why? It is not enough just execute Extending constructor?
  5. Replies
    6
    Views
    290

    What happens when i write this?

    public class Extending extends Test {

    public Extending() {
    System.out.println("printing EXTENDING constructor");
    }

    @Override
    public void testMethod() {
    ...
  6. How to make portable .jar file with some kind of database storage?

    Hi, would like to make .jar application, which will be able to sava data without using any database (Postgres...) but i dont know, what type of datastorage i should use to make the application...
  7. Replies
    5
    Views
    621

    Re: TCP JAva Server - Username, Password

    I think Scanner(System.in) doesnt solve my problem. I am connected via command line in windows and i am sending commands.
  8. Replies
    5
    Views
    621

    Re: TCP JAva Server - Username, Password

    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...
  9. Replies
    5
    Views
    621

    TCP JAva Server - Username, Password

    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...
  10. Replies
    3
    Views
    410

    Re: TCP Java Socket Server

    It works now ! :) The parametr Socket s shouldnt by there :)
  11. Replies
    3
    Views
    410

    TCP Java Socket Server

    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;...
  12. Replies
    3
    Views
    811

    Re: B-Tree implementation

    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...
  13. Replies
    3
    Views
    811

    B-Tree implementation

    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...
  14. Replies
    4
    Views
    691

    Re: How can I add two data arrays ?

    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 ?
  15. Replies
    4
    Views
    691

    How can I add two data arrays ?

    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];...
  16. I need join my code with the main metod, but i dont know how.

    package du1;

    import java.util.Scanner;

    public class Du1 {

    /**
    * Zde je metoda resici problem faktorialu
    * Doplnte spravne obsah metody.
    */
Results 1 to 16 of 16