Search:

Type: Posts; User: JosPhantasmE

Search: Search took 0.15 seconds.

  1. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    Not yet finished, I'll post the complete version here.
  2. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    I fixed the problem, thank you very much:

    This is my actual code:


    //By José D. Hernández, 2013.

    import java.io.*;
    import java.util.Scanner;
  3. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    No it is not working property. This is what I have so far:


    //By José D. Hernández, 2013.

    import java.io.*;

    public class ugh
    {
    public static void main(String args[]) throws...
  4. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    That's all my code... I know is a mess, that's why I'm here, so I can learn and fix it.

    So you understand better:

    The purpose of this Java Program is to execute the "cmdkey /list" command...
  5. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    Perfect, thank you, that solved my problem, I just deleted the "line=reader.readLine();" from while and is not giving me the error, but it start printing "yes" infinite times. Any ideas?

    ---...
  6. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    Thanks you very much for your fast response, but I am still lost, in line 24 if I am not mistaken the variable does not have a null value, sirry for my ignorance I'm just learning.

    --- Update ---...
  7. [SOLVED] Re: Exception in thread "main" java.lang.NullPointerException

    The only variable with a null value is "While" and in the line 24 this is what is located "if(line.contains(look))". And in the matter of the null value of "while" I have no idea what to insert over...
  8. [SOLVED] Exception in thread "main" java.lang.NullPointerException

    Hi guys, my first post over here, I hope somebody can help me, thanks in advantage and sorry for my English.

    I'm creating this simple program that read the information from a cmd variable and I...
Results 1 to 8 of 8