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
Type: Posts; User: justyStepi
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
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...
Yes,only one with 5 variables nd I want to change only 1
Can you please help me out with it? I'm really lost
I need sth like this : OLD variable,new variable, OLD, Old
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...
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
...
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
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...
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....
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...
here is the code with FileWriter
private void add(String[] tokens) throws IOException {
System.out.println("file : ");
if(tokens.length < 5)
{
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...
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:
...
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...
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...
Hello Im having problems with RowMapper<>
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.simple.*;...
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...
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...
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?
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...
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import...
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;
...
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...
heya,
thx guys for your help :) Friend of mine solved it. I was missing the library for dbUtils. :) Thx
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