Vincent Tomas

Greenhorn
+ Follow
since Jan 16, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vincent Tomas

Thank you so much Michael! I was about to go blind. However, without running the application. What makes the Save button have focus? As you can tell I am newbie with GUI stuff.
15 years ago
Hello everyone,
I am very frustrated. I am trying to set my cursor at the beginning of the second line of my JTextArea but the cursor doesn't show when I uncomment the block of code in my JNotePad constructor, why?

myFile.txt has just one sentence that says, "This is a test of your local broadcast".

Thank you for your assistance.

15 years ago
I am writing a simple command line program that takes in a file name, file1.txt. In Eclipse, in my "Run Configurations", for my arguments I put in file1.txt. file.txt is in the same directory as my class but yet it does not find the text file. How do I set Eclipse to the location of that file? In the classpath? If so, how do I do that in Eclipse?

Here is my code:


Thanks in advance
Thanks for the tips, Deepak!
Hello all,

I a planning to take the SCJP 5.0 and I would like to get some hands-on project. Would anyone know of any links to mini projects/school assignments that practices on Generics, statics, etc?

I appreciate your help.
Hi Jeanne,

Thank you for reply to my post. I apologize for not replying quickly and yes it is the third method argument that I would like to parse out. I tried out your code and I really liked your advice in dividing your regular expression. However, maybe I wasn't clear on my explanation because your code doesn't extract the third variable, which is my goal. Unless, I am printing it out incorrectly? The only way I could think of extracting the third method argument is by doing a string split() using the comma as the delimiter after your code. Please see below:



I will keep trying trying your code. Thank you for helping out.

Vincent
16 years ago
Hi everyone,

I have been tasked to parse out a variable from c++ source files. If you can imagine, developers have different ways of doing things. However, there is a pattern that I could work with but I can't seem to find the right regular expression.

The text that I parsed out so far looks similar to this
snippet 1


or it could be this
snippet 2


or it could be this
snippet 3


I am trying to extract keyVar, keyVariable, myKeyVariable. That particular variable could be named any number of ways. How would I extract it? If I used the ...\\w+\p{Punct}, snippet 2 would be correct but not snippet 3.

Any help is appreciated.

Thanks.
Vince
16 years ago
Does anyone know the difference in the price of taking the SCJP? In other words, in the Sun site, they sell a voucher for $200. When I went to schedule my exam on the Prometric website (http://www.2test.com, the cost for taking the exam is $300. What is the difference in price? So the SCJP exam cost $500 total or $200 or $300?

Please help me clarify the price difference.

Thank you.

Vincent
My gosh. How did I missed that? Thanks Henry!
16 years ago
Hello everyone,

I am new at regex and I have read several tutorials but I still can't find my answer, which is, is there a way to parse using 2 different patterns?

For example,


Sorry for being vague. To explain it in sentences, I am parsing source (.*cpp) files and I am trying to find the following:



Sounds easy, however, some source files have it like the following:



Is there anyway that I could search on two patterns?

Thank you for any help.
16 years ago
Would anyone know how to get a Cisco router's running-config file via TFTP?
I have been stuck scratching my head over the weekend trying to figure it out. Any help would be much appreciated!

Vince
Hello everyone.

Would there be any efficiency issues with having my class implement listeners:
i.e.


instead of creating separate listeners classes (or inner classes) and then adding them to my class:



Hopefully I made sense.
Thanks in advance
Vincent
16 years ago
Thank you Ernest for the prompt response! Wow!

My loop will loop 10,000 times. For example:

NOTE: this is a simplistic way of to convey my example. I would do it all in one method



Thanks!

Vincent
17 years ago
Hello,

Would there be any problems (i.e.efficiency) with instantiating a StringBuffer in a loop?

For example:



If there are any problems, would you please let me know of a better solution.

Thank you in advance,

Vincent
17 years ago