kevin Abel

Ranch Foreman
+ Follow
since Jan 15, 2018
Merit badge: grant badges
Biography
I have worked as both an employee and contractor since 1983.  Most of the time I was coding for the end product but most of the time I worked with automation QA tools.   I'm on a long term project at this time. 
I wondered if I work for the money or the enjoyment of it.  Now that I have the ability to retire but I don't I know the answer.  
For More
Pembroke PInes, Florida
Cows and Likes
Cows
Total received
8
In last 30 days
0
Total given
0
Likes
Total received
39
Received in last 30 days
1
Total given
125
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
Ranch Hand Scavenger Hunt
Greenhorn Scavenger Hunt

Recent posts by kevin Abel

// This example shows how to define and use a class in Groovy.

I copied this groovy code from chatgpt.  Jshell gave a bunch of errors.   I don't think it likes groovy.

1 week ago
Jshell is good to know about.  Thank you for introducing me to it.

I'm wondering if it works with groovy.  I'll give it a try someday to find out.

I'm going to go back to working in intelliJ.

I went back to looking at what you recommended that I investigate.  I worked with a tutor who finally got my mind to understand Interfaces.  I didn't use them and I forgot a lot of it after a few months.  I found a folder on my laptop and I think that it has notes from when she was teaching me. I recall an interface being an  class with only one abstract method.   i don't know if that is correct.     I'm going to look at the notes.  

Campbell wrote:Please look at ActionListener and work out why it is a Functional Interface, even though it isn't flagged with that annotation. Hint: you do it by counting methods. Then go to the Java™ Tutorials and find out how I converted the body of the addActionListener() call to a λ expression.



Thanks,

Kevin

1 week ago
Yup.  It worked

After entering the code it said:

modified class SimpleGui3

I added the line to start the code and it ran.

So now how do I use JShell to learn about the code?

I'm enjoying reading the HF book, asking questions, writing/copying code. I'm doing this for fun.  I'd be a good QA white box Java tester.  

Thanks,

Kevin



1 week ago

Campbell Ritchie wrote:Did that code run? It ought to. You simply need to feed SimpleGui3.main(null); to JShell.


:
I'm thinking that I paste the code into JShell.  Then type :



on the next line and press enter.

I'll see.

Thanks,

Kevin
1 week ago
So far I got the code to run in intellij.

Next I'll use JShell.    

I took a quick look at the links you recommended.   I think the answer to to how many methods there are is "one"  There are methods that all methods automatically have, but these are not counted. Just a guess from what I quickly read.

I have to review lambdas.

I need to chew on this a while.

I already entered the eratta for fixing the page number.  The book didn't say anything about the code not working as presented.  Should I add another eratta and point to this thread?  The material is complicated enough and if the examples don't work it can confuse the reader of the book.  Perhaps the code does work and I pasted the snippets together wrong.  

Thanks,

Kevin

1 week ago
I saw a store that sold party goods yesterday.  I noticed how party is parity without the I.   So here is my joke:

I wonder if the word PARTY comes from the transmitted word PARITY.  Maybe the I bit dropped off and parity was lost.

Perhaps a slogan for a programmer:

We put the IT in parITy.

OK...It's time for me to return to Java.
1 week ago
I pasted your code into Jshell.   I want to get it to run first and then look at how the GUI part works.  

Is there a way to clear memory in Jshell so I can run from the start.  I can't tell if it is remembering objects and variable between runs.

Campbell wrote:Optional. It is possible to call Foo.main(null); on JShell, but that is easier if you declare it as public static void main(String... args). You can then write Foo.main();



Do you mean to use this call to the main method instead of the way shown in your code?

I added two attachments to show what your code looks like in my Jshell editor.

Thanks,

Kevin
1 week ago
I see JShell on my laptop.  I don't remember if I installed it or if it comes with Java.

I read about the tool and watched an introduction video

https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Java-JShell-Online-Commands-How-to-Tutorial-Exit

The important commands I now know are:

/open

/imports

/exit

The example in the video shows the name of the file with .JSH at the end

/open game.jsh

I'd like to run the code you supplied in JShell.  Do I put your code in a text file and give it a .JSH extension?

Jshell doesn't need the main method.  I don't know if I have to remove it or it is optional.

Thank you,

Kevin
2 weeks ago
Campbell,

I always appreciate the time and effort you put into answering questions and improving code.  

I learning some main ideas in  the current GUI chapter.  

I didn't write any of the code my self.   I copied it from the book and the repository.  The incorrect page made it difficult to tell what code to use.  

Is the information you gave me needed to make it work or is it for improvements?  

The book mentions to ask questions on Code Ranch which I usually do before posting errata information.  

I have posted at least 16 errata's already.   A lot of the erratas from others don't look as if they were fixed for the May 22 Printing history.

This code example is not working for me.  I wonder if others also got lost.

Do you or someone else communicate with the authors?   Can you give them your input to make this better for the next edition?

I mostly want to learn Java, but I also have a QA mind and don't like to let things go.  I have even challenged the NYC DMV on a written test question.

I'll copy your code into Intellij and get familiar with it.

Thanks,

Kevin

2 weeks ago
It worked.  Nice sound in the speaker.

Thanks,

Kevin
Campbell,
I have the Third edition
Covers Java 8-17

This thread will make more sense in the GUI area.  

The GUI chapter has been fun to read.  I don't understand it completely.  Maybe once I get the code to work I can look over the code some more.   This is my latest attempt.  It draws an empty window without any objects on it.   I put a break in the method after it uses Random to pick colors.  I hover over the variables that should have values.  Nothing shows on the hover.  Maybe I'm using debug wrong in Intelij.






2 weeks ago
Carey and Campbell,

I didn't know my comments would be truncated.  Now I"m aware of it.

I'll use the /*           */    comment style          

Thank you,

Kevin
3 weeks ago
Carey,

I looked more closely at the book.  It shows an outline of the MyDrawPanel Class at the bottom of the page.  It tells the user to go to page 365 for the code but its actually on Page 472.  I added this to the Errata sheet for the book.  

I will add the Class to the code and run it.   I'll review the code to see how it works.

Thanks,

Kevin
3 weeks ago
I copied the code from the on line examples.  
I don't know what this error means:
MyDrawPanel drawPanel = new MyDrawPanel();  //<-- Cannot resolve symbol 'MyDrawPanel'

This import looks grayed out.  i don't know why
import java.awt.*;

Thanks,
Kevin








3 weeks ago
I hope it was OK that I I jumped into the discussion.  I hope I didn't hi jack anything.

Thanks,

Kevin
3 weeks ago


vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |