kevin Abel

Ranch Hand
+ Follow
since Jan 15, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
1
Total given
26
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kevin Abel

I like this sentence:

When a bride gets married she gets a new name and a dress(address).

Thanks,

Kevin
5 days ago
I like the feature of Java where the data type determines which method to use depending on what the parameters are.  For example:



the useMe gets called depending on the types of parameters that are passed.  

My question is:  What is this feature called?

Also does the constructor class get called first and then the correct method?

Thanks,

Kevin
5 days ago
Some languages allow for optional parameters going into a function. 
Microsoft VBA has a feature where parameters can be optionally used.

The receiving function is not guaranteed that all of parameters will be used.  I think that the unused parameters are always on the right side of the function.

I could have a bunch of Constructor methods each with a different number of parameters.

It there a way to define the function so that it can be flexible on the parameters being used.

For example:



Thanks,

Kevin
2 weeks ago
Jeanne,
Appreciated.  When I was debugging with someone watching the process he said to just step past this error.  I did not realize that I could keep moving forward.  Now I know why he said to keep debugging.  I thought that I was at completely dead spot in the debug but I was not.
Thanks,
Kevin
2 weeks ago
Paul,
Appreciated.
Thanks,
Kevin
3 weeks ago
Dimitry,
The Maven Idea looks good.
Appreciated.
Thanks,
Kevin
3 weeks ago
I"m reading keywords and data from an excel sheet using POI.  That part seems OK. 
mKeyWord contains nav.  I pass in the keyword for debugging.
mParam1 contains the URL.

On the driver.get(url) line the Eclipse IDE gives the error shown in the Attachment.  It is looking for a selenium file.  I used the file explorer and the file does exist.

I don't know what the code is asking for.

Thanks,

Kevin

3 weeks ago
My simple code to check that my Selenium Setup is correct looks like this:



I run it as a Java Application.

I get errors saying:

You are using an unsupported command line flag.   Ignore certificate errors  
and a bunch of other things.

Every time I install the eclipse combination I run into different trouble.

I do it from memory.  I go to SeleniumHQ.org  and eclipse and download the parts I want.  Something always goes wrong.

Besides assisting me with this error does anyone know of a place that has the Windows 64bit setup written out clearly so I don't have to rely on my memory?

Thanks,

Kevin
1 month ago
Henry, Tim, Rob,
I appreciate the replies and information.   I will keep the >>> operator in the back of my mind in case I ever need to make use of it.
Thanks,
Kevin
1 month ago
I get an error when launching Eclipse Oxygen.

Java was started but returneed exit code=13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.8
and it keeps going for a full page.

I type
Java -version from CMD.
It says
java version "1.80_161
with more lines of information.

I'm not sure what is wrong with my Eclipse setup.  Can anyone tell what is wrong from my clues?

Thanks,

Kevin
1 month ago
I was debugging some code which seemed to be going inside of classes that were added by include statements.

I ran into this code that has three greater than signs in a row.   I googled and it said that it is doing a bit shift to the left.

I'm guessing that ch might hold the ascii value such as 5533.  In binary it would turn into a string of ones and zeros.

Then a shift would be take the bit string and add zeros to the left. 

I wonder what the purpose of it is.  Maybe it is checking if the left 8 bits were zeros. 



Has anyone ever seen a use of the shift operator?

Thanks,

Kevin
1 month ago
Junilu,
I appreciate your answer.  I'm in the middle of a Selenium/Java online class.  When I am done with the coding assignments I plan to come back to the topic of arrays in Java. 
Thanks,
Kevin
2 months ago
I wish to get an Excel sheet data into some kind of data structure in Java.

At first I was going to use an Array.  Then I found out that each row of data may have a different number of columns.   I don't know the maximum number of columns so I would have to make it a ragged array.  They only way that I know how to make the array larger is to copy it to a new array.  First I'm not sure how to do this but I'd imagine if the arrays got huge that I'd be using a lot of memory and maybe time.   I'd have to learn how to make new arrays and destroy old ones.

I read that using lists might be the way to go but I do not have experience with them.

A class for each row and then putting the row classes into a parent class might work but I don't know if it makes sense or how to go about it.

This is all easy in VBScript because it lets me redimension arrays but I don't know a good way to do this in Java. 

Can some of you guide me on how to get datasheet information into some kind of data holder in Java? 

Thanks,

Kevin
What is a good data structure to use if I expect it will change shape?

If I use an array and expect it to by 4X5 and then later on I realize I need the 5 to change to 6 the array does not want to change shape.  I don't want to copy into a larger array.

What can I use instead?  Maybe a list?

Thanks,

Kevin
2 months ago

I had the Object[][] dataArray line of code inside of the try/catch block. The compiler was complaining.
Sorry about my original question being NOT clear.
I don' t have a question at this time.
Thanks,
Kevin


2 months ago