Pete Tyo

Ranch Hand
+ Follow
since May 11, 2005
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 Pete Tyo

I am currently in a Community College finishing of the lower division requirements for a Bachelors of Computer Science. I have taken a couple programming classes thus far and rather enjoy it. What I really like is I will have the ablility to design my own applications.

I could use any pointers you may have on how to get the most out of my College experience. When I get to the four year college I plan to work with the teachers in research and look for internships. I believe this will greatly help me when I get my degree.

Last but not least. Is Computer Science a good field to get into? I often wonder if the programmer isn't becoming a dime a dozen if you know what I mean.

Thanks,

Pete
15 years ago
Nicholas,
Thankyou for your help. I was able to do as you suggested and all my buttons are working using inner classes.... Just have to figure out how to open and write to a random access file...

Thanks again,

Pete
15 years ago
I am trying to create a program for myself while learning to use swing. I ran into a problem with ActionListeners... Here is what I have so far below.. I have questions in bold within the code between ***********

[ November 10, 2005: Message edited by: Pete Tyo ]
15 years ago
Ah, okay. I understand now and got it to work thanks..

Pete
16 years ago
I downloaded a package that I want to mess around with. I do not understand where I need to put it though...
I am working in a directory c:\jdk\app that is where my main program I am creating is at. the package say net.something.stuff okay I now where that folder system is at.. Do i need to put the folders in the
c:\jdk\app director to use import net.something.stuff.*; ??? We never had to do this in are class and for some reason I can't figure this out.

Thanks,

Pete
16 years ago
So, Method overloading is made possible by the compiler? Ex. If I say something like....


Method overloading makes the source code more readable, since the compiler know which method to use from the parameters passed then?

Pete
16 years ago
Am I correctly using the idea of method overloading in the below code?


If I understand this right.. both of the calculateFunctions do just somejunk, but one will except a int parameter and the other will except and double parameter and return and integer value.... Do I have basiclly the right idea here?

Thanks,

Pete
16 years ago
http://www.theeldergeek.com/change_ie_title_bar_text.htm

This link will tell you how to do it via the registry. I hope you can somehow use this to do what you need.

Pete
16 years ago


The past is gone, and certainly doesn't exist in any sense which could be called real, so each day is a fresh start.



True the past is gone, but it exists in our memories. After all are life consists of memories of our experiences which makes us who we are. Look at the past to predict the future I believe is the old saying.

Pete
16 years ago
public static boolean isEndOfSentence( char c ){
return String.valueOf(c).matches("[.?!]");
}
16 years ago
Problem:
Had to write a boolean method isEndOfSentence() that has a single value char parameter c. The method returns true if c is either a period, a question mark, or an exclamation point, otherwise the method returns false..

My Solution:



Question one:
Does my method solve the problem?

Question two:
Seems to me there should be an easier way to do this? Is there...

Thanks,

Pete
16 years ago
I would think you would need to write something like the following.


hope that helps... int cube (int n) \\int n is the parameter being passed to the method...
return (n*n*n); \\ is cubing the int n number sent to the method and returning the value..or cube of the number..

Pete
16 years ago
Stress.... Lots of people deal with stress in numerous ways. Drinking / drugs I suppose is a way out of reality for these people. I just hope that their friends get them help. Life is to short to be unhappy. One should live everyday as though it is his / her last.

Pete
16 years ago
It would be nice if you used the UBB code tag so your code is more readable.

Pete
16 years ago
Sorry,should have posted the error. Needless, to say I typed
C:\java HelloWorldProgram

and the dang thing worked.. Not really sure what happened, but for now I suppose there is no problem anymore..

Thanks anyway,

Pete
16 years ago