Search:

Type: Posts; User: justyStepi

Page 1 of 3 1 2 3

Search: Search took 0.26 seconds.

  1. Re: Problem with replacing substring in a file

    I cant change only one variable, when I change the old value to a new value and then try to save it. The whole file gets overwritten and nly the new value stays. The old values disappear
  2. Problem with replacing substring in a file

    Hello,

    I'm writing a piece of code with should modify my file. I have a string :



    And I would like to change only one variable,but I'm not able to do it. Can you help me?

    Here is the...
  3. Replies
    7
    Views
    247

    Re: Saving new value to file

    Yes,only one with 5 variables nd I want to change only 1
  4. Replies
    7
    Views
    247

    Re: Saving new value to file

    Can you please help me out with it? I'm really lost

    I need sth like this : OLD variable,new variable, OLD, Old
  5. Replies
    7
    Views
    247

    Saving new value to file

    hello,

    I'm having issues with writing changed value to a file. In my file I have a string which contains



    I want to change one field foe example I want to replace 15:00 to 18:00 but when I...
  6. Replies
    1
    Views
    205

    How to change a string at indexOf

    Hello,

    I would like to change a string at the position of indexof. But I cant figure out how to do it. Should I use substring? in order to do it? And if yes how? Because I'm getting errors


    ...
  7. Replies
    4
    Views
    219

    [SOLVED] Re: Searching for a word in file

    OOMG !! It's working..I cant believe it. That I didn't see this. Thank yoou so much I was stacked at this for such a long time..:-bd=D>

    --- Update ---

    *unstuck
  8. Replies
    4
    Views
    219

    [SOLVED] Re: Searching for a word in file

    Sorry,for not posting th content of the file, here it goes:



    Basically what i want it to check if the input is in the file. For example to check if 14:00 exists in the file.

    And then give...
  9. Replies
    4
    Views
    219

    [SOLVED] Searching for a word in file

    Hello,

    I'm having issues with searching for a word in a file. The word is a user input from console, then it should look in a file for it. And print out the position. I'm using indexOf() for this....
  10. Replies
    7
    Views
    312

    [SOLVED] Re: Problem with FileWriter

    if(input.startsWith("add"))
    {
    // Call the add method and pass a string array as argument which does not
    // include "add" and has split the remaining...
  11. Replies
    7
    Views
    312

    [SOLVED] Re: Problem with FileWriter

    here is the code with FileWriter



    private void add(String[] tokens) throws IOException {

    System.out.println("file : ");

    if(tokens.length < 5)
    {
  12. Replies
    7
    Views
    312

    [SOLVED] Re: Problem with FileWriter

    thats the problem,i don't get any error messages :( that's why I'm so confused

    --- Update ---

    Well, i found that there is sth wrong with th scanner. I tried to print out the input but it...
  13. Replies
    7
    Views
    312

    [SOLVED] Problem with FileWriter

    Hello i have a question about my code : I'm trying to write a code which would read from command line and then it would create file nd write the input inside:



    ...
  14. Replies
    3
    Views
    482

    Re: SImpeJDBCinsert leads to memory leak

    Hey, there is no error,and I can compile it.

    It happens when I press the btnAddMission. The whole JFrame freezes and I have to kill it with task manager,and then I get Process finished with exit...
  15. Replies
    3
    Views
    482

    SImpeJDBCinsert leads to memory leak

    Hello,

    I'm having issues with my code, I'm using simpleJDBCinsert in order to create new entry to mt db. But when I run my code, it freezes.

    Thank you for your help.

    @Override
    public...
  16. Replies
    0
    Views
    610

    Problem with RowMapper

    Hello Im having problems with RowMapper<>




    import org.springframework.jdbc.core.JdbcTemplate;
    import org.springframework.jdbc.core.RowMapper;
    import org.springframework.jdbc.core.simple.*;...
  17. Replies
    8
    Views
    1,759

    [SOLVED] Re: problems with lib imports and statements

    Strange thing is that i'm having issues only with this one jar. Other jars which I added are working well. I checked how to add it here: classpath - how to add a jar to my lib/ directory in intelliJ...
  18. Replies
    8
    Views
    1,759

    [SOLVED] Re: problems with lib imports and statements

    Yes it is. I found the jar her: Download org.springframework.jdbc-sources-3.0.5.RELEASE.jar : org.springframework.jdbcoJar File Download

    and it's there. But I have no idea why the compiler...
  19. Replies
    8
    Views
    1,759

    [SOLVED] Re: problems with lib imports and statements

    i already add it :/ I added : org.springframework.jdbc-sources-3.0.5.Release, and spring-jdbc-3.0.2Release-sources and jdbc.jar

    Why none of this is working?
  20. Replies
    8
    Views
    1,759

    [SOLVED] Re: problems with lib imports and statements

    Oki


    java: package org.springframework.jdbc.core.simple does not exist
    java: type org.springframework.jdbc.core.RowMapper does not take parameters
    java: no suitable method found for...
  21. Replies
    8
    Views
    1,759

    [SOLVED] problems with lib imports and statements

    import org.springframework.jdbc.core.JdbcTemplate;
    import org.springframework.jdbc.core.RowMapper;
    import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
    import...
  22. Replies
    0
    Views
    372

    Google maps v2 issues

    Hello I have tired to write a simple google maps app. with v2.

    However I'm having issues. The app work for a millisecond and then it crashes. Here is my code:


    package com.stepi.maps;
    ...
  23. Problems with Jtable.setModel() with Db connecton

    Hello,

    Im trying to create a "Header" for my JTable by using .setModel()...


    But the problem is that it doesn't work.. My Jtable gets it's data from Db and when I run it the .setModel() hides...
  24. [SOLVED] Re: Problem with update table after inserting new values

    heya,

    thx guys for your help :) Friend of mine solved it. I was missing the library for dbUtils. :) Thx
  25. [SOLVED] Re: Problem with update table after inserting new values

    Hey,

    My imports seems fine. I found sth similar which I tried to do here you can see it. java - JTable setting model and preserve column formats (width, alignment, etc.) - Stack Overflow
Results 1 to 25 of 57
Page 1 of 3 1 2 3