Search:

Type: Posts; User: knotski

Search: Search took 0.33 seconds.

  1. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    well i found it :) thank you so much for all your help Norm :) did put null in the intext fields and it solved it :)
  2. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    the NPE comes when i close the program, when i run now its on this line String[] words = indata.split(" ");
  3. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    its at line 14 at "if(val.equals("1")) {"
    is it the space in split(" ") ?
  4. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    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)...
  5. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    i dont get it at all :/ can you maybe show men an exemple? ive tryed to change in the code but without luck :(
  6. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    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...
  7. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    i did put it here


    if(val.equals("1")) {

    StringBuffer str = new StringBuffer("");
    String indata;
    char first;
    ...
  8. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    i tried that but it didnt change the outcome at all :( i have to do something wrong :/
  9. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    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? :/
  10. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    Okey i understand what to do so ill give it a try tomorrow its night time here in sweden atm :/ thanks for ur input
  11. Replies
    22
    Views
    1,790

    Re: new to java, and need help with assigment

    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...
  12. Replies
    22
    Views
    1,790

    new to java, and need help with assigment

    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...
Results 1 to 12 of 12