well i found it :) thank you so much for all your help Norm :) did put null in the intext fields and it solved it :)
Type: Posts; User: knotski
well i found it :) thank you so much for all your help Norm :) did put null in the intext fields and it solved it :)
the NPE comes when i close the program, when i run now its on this line String[] words = indata.split(" ");
its at line 14 at "if(val.equals("1")) {"
is it the space in split(" ") ?
i got the code working :) did do the split method wrong :/ the program now works, but i get a Exception in thread "main" java.lang.NullPointerException
at OverSattaren.main(OverSattaren.java:23)...
i dont get it at all :/ can you maybe show men an exemple? ive tryed to change in the code but without luck :(
well think im starting to get somewhere:P when i type in test abc it should print esttojoj bcaojoj, but for me it return test abcest abctojoj.
sorry for the trubble:/ im not the best at english so...
i did put it here
if(val.equals("1")) {
StringBuffer str = new StringBuffer("");
String indata;
char first;
...
i tried that but it didnt change the outcome at all :( i have to do something wrong :/
Hi again ive been trying to get the split method to work but, i cant figure it out :( can anyone help me? where in the code should i set it up for it to work? :/
Okey i understand what to do so ill give it a try tomorrow its night time here in sweden atm :/ thanks for ur input
well there are no errors, its just that the program dont do as i want it to do. i want it to print all words in a phrase. Example: hello world. should be ellohsese orldwsese, but it prints ello...
Hi all, i need to make a translater program that translate words. example if u type in hello all it should return ellohsese llasese. it moves the first letter in the words to last and puts sese at...