Perfect, thank you very much! I stop it by using a boolean.
Type: Posts; User: JosPhantasmE
Perfect, thank you very much! I stop it by using a boolean.
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...
I mean it gets executed only one time,. thats my entire code right there.
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?
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;
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...
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 "+...
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,...
import java.io.*;
//By José D. Hernández, 2012.
public class other {
public static void main(String args[]) throws IOException, InterruptedException
{
Runtime runtime =...
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...
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";
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 {
I've tried everything, seriously!
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 {
But which one?? Don't forget I just started programming.
Okay, thanks.
And how can I select line 3, and try to look for the last word in that line?
Thanks, and now, i get this.:
0
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Korbel\TERMSVR1
75
Certified REG_SZ Pos001
33
0
OMG, and how can I do that, can you give me an example?
THis is what is printed... THere not short
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Korbel\TERMSVR1
Certified REG_SZ Pos001
This is my code:
import java.io.*;
import java.util.regex.*;
//By José D. Hernández, 2012.
public class other {
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.
How exactly? And sorry for my ignorance.
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