Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

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
0
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

In eclipse I am hovering over a method such as below:

DataParser.Breakup();

I am hovering over the breakup part with the mouse.  I am holding down the control key.

It shows to choices in the pop up rectangle button:

1)  Open Declaration
2) Open Implementation

What is the difference?

3 weeks ago
Jeanne,
I'll try F5.  I didn't know about this in Eclipse.  F5 seems to be popular in many environments.
Now my client locked down the environment so I cannot even get the new zip file on the machine.  Once I find out how to migrate the zip file I'll get to attempt again.
Thanks,
Kevin
1 month ago
Please let me explain better:

I moved java code from one PC to another.  I made a project with the same name.  I made a sec folder.  I copied the src folders which are also packaged using file explorer.
The packages don't appear.  When I try to create the packages eclipse says they already exist.  Can I sync eclipse to the file structure?  Should I have copied files from a higher level?
This is sort of the same question on Code Ranch but I'm not getting responses.

Thanks,
Kevin
1 month ago
I am working on Eclipse with Java.

I moved files from PC A -> PC B

I created a project inside of eclipse.  I moved the files to the correct place (I think so) in the file directory.  I do not see the files under the src folder as packages.  When i try to create the package it says that it already exists but it does not show it in the project in Eclipse. How do I sync between the file directory and Eclipse?

Thanks,

Kevin
1 month ago
I like this sentence:

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

Thanks,

Kevin
2 months 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
2 months 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
3 months 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
3 months ago
Paul,
Appreciated.
Thanks,
Kevin
3 months ago
Dimitry,
The Maven Idea looks good.
Appreciated.
Thanks,
Kevin
3 months 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 months 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
3 months 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
3 months 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
3 months ago