Search:

Type: Posts; User: JosPhantasmE

Search: Search took 0.12 seconds.

  1. Re: Print just what I want, help me with my code.

    Perfect, thank you very much! I stop it by using a boolean.
  2. Re: Print just what I want, help me with my code.

    It print the job 5 times. I think I found the problem but not sure how to solve, everything is inside a while statement, that might be the problem, but how can I assign a "else" to the if statement...
  3. Re: Print just what I want, help me with my code.

    I mean it gets executed only one time,. thats my entire code right there.
  4. Re: Print just what I want, help me with my code.

    I'm so confuse I dont know what could it be...

    When I run a System.out.println(check1); afther the while it print the whole string 5 times, and IDK why, can you help me understand?
  5. Re: Print just what I want, help me with my code.

    I got what I wanted but know my code:



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

    import java.io.*;
    import java.util.Scanner;
    import java.io.File;
  6. Re: Print just what I want, help me with my code.

    I started playing around with the numbers and I got this:


    import java.io.*;

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

    public class other {

    public static void main(String args[]) throws...
  7. Re: Print just what I want, help me with my code.

    Put the value returned by the split() method in an array and print the array's contents using the Array class's toString() method:

    System.out.println("an ID "+...
  8. Re: Print just what I want, help me with my code.

    I just tough about using an "If" statement:


    import java.io.*;

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

    public class other {

    public static void main(String args[]) throws IOException,...
  9. Re: Print just what I want, help me with my code.

    import java.io.*;

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

    public class other {

    public static void main(String args[]) throws IOException, InterruptedException
    {
    Runtime runtime =...
  10. Re: Print just what I want, help me with my code.

    It printed "Pos001"

    And with what you are suggesting, I dont think thats gonna work for me.

    Because the data will always be different, "pos001" is just an example.

    I will want the last word...
  11. Re: Print just what I want, help me with my code.

    I did what you told me and this worked:


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

    public class texting {

    public static void main(String args[])
    {
    String str = "Certified REG_SZ Pos001";
  12. Re: Print just what I want, help me with my code.

    Here are some examples of what I have tried:


    import java.io.*;
    import java.util.regex.*;

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

    public class other {
  13. Re: Print just what I want, help me with my code.

    I've tried everything, seriously!
  14. Re: Print just what I want, help me with my code.

    I've tried everything with no luck, can you help me with some code?

    I have this:


    import java.io.*;

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

    public class other {
  15. Re: Print just what I want, help me with my code.

    But which one?? Don't forget I just started programming.
  16. Re: Print just what I want, help me with my code.

    Okay, thanks.

    And how can I select line 3, and try to look for the last word in that line?
  17. Re: Print just what I want, help me with my code.

    Thanks, and now, i get this.:


    0
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Korbel\TERMSVR1
    75
    Certified REG_SZ Pos001
    33

    0
  18. Re: Print just what I want, help me with my code.

    OMG, and how can I do that, can you give me an example?
  19. Re: Print just what I want, help me with my code.

    THis is what is printed... THere not short


    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Korbel\TERMSVR1
    Certified REG_SZ Pos001
  20. Re: Print just what I want, help me with my code.

    This is my code:


    import java.io.*;
    import java.util.regex.*;

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

    public class other {
  21. Re: Print just what I want, help me with my code.

    Yes, it is a String.

    --- Update ---

    Apparently, is not a String, because if does not matter how I do it, it give me an error.
  22. Re: Print just what I want, help me with my code.

    How exactly? And sorry for my ignorance.
  23. Print just what I want, help me with my code.

    I have this code:


    import java.io.*;

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

    public class other {

    public static void main(String args[]) throws IOException, InterruptedException
Results 1 to 23 of 23