Sherman Willden

Greenhorn
+ Follow
since Feb 28, 2018
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 Sherman Willden

Name: Sherman
Platform: HP Compaq 6710b
Operating System: Ubuntu 17.10
postgresql version: 9.6
openjdk version: 1.8
javac version: 1.8

I have been able to implement several learning scripts so far but this one is giving me trouble. When I installed jdk 8 the installation script said that it should not be installed as root so I installed it to /home/sherman/build_environmnet/jdk1.8.0_161. I put netbeans in /home/sherman/build_tools/netbeans-82.

Since I couldn't find the main class just by running java Beeper I found that I needed the rt.jar file. So I ran the script again with java -cp "/home/sherman/build_environment/jdk1.8.0_161/jre/lib/rt.jar" Beeper. It ust returned the same error message of "Error: Could not find or load main class events.Beeper".  The script is shown below.


8 months ago
Name: Sherman 71 years old retired
Platform: HP Compaq 6710b
Operating System: Ubuntu 17.10
Java version: 8 and 9 installed. Presently using 8

I am enjoying this journey so far. Having just started I see that I can use javajf which I have. I ave not determined how to use it yet as I have just downloaded it.  

I think I understand that javafx comes with Oracle java 9. I can download that but to install it I have to gunzip, tar, and move it into place.

OK so far. I have been using UNIX since 1985 and I am using UBUNTU now without windwoes.

My thought when I started was coding within vim since I know it pretty well and that is what I have been using for Perl. I have netbeans installed but it does not recognize javafx, which I assume is just a link or classpath problem. So do you like to just code or use an IDE?

I am just looking for your thoughts.

Thank you;

Sherman

Sherman
9 months ago
This is where I am going with all of this plus learning java along the way.

The sqlPokerInsert project obtains the user's input for the postgresql venue_visits database visits table values. The program then verifies that the user's inputs are valid. Upon verification, the user's inputs are inserted into the venue_visits database visits table.

The user is queried for the input with a default answer submitted by the sqlPokerInsert program. The program obtains the default answer from the config.properties file. The program obtains the sql database acceptable values from the postgresql venue_visits database tables as listed below.
cities, games, hi_lo, kills, stakes, states, v_limits, and venues.

Upon the user's values being valid, the valid entries are inserted into the venue_visits database visits table.

Just for clarity below are the venue_visits fourteen entries.

I am forcing the date and time entries into an integer by checking that the date and time are in the following formats.

Time: 1000 or 1800 or 2400 or 0200
Date: 20180213 or 20180112 or 19890811

The poker visits information I have goes back to 1989. I actually played my first $1/$5 seven-stud game at Binion's in 1968. Two striper in the USAF and part-time dining hall work at Vandenberg and saved up a whoping $60 for the game. Lost it all that night in Las Vegas and had to return to Vandyland on what I had left. It was surprising what you could do on couple of bucks and a Trailways bus.
9 months ago
Thanks to all. I see that I have more to learn and I do appreciate this. I apologize for the short variable name. I started working with UNIX in 1985 and then it was about space and memory. I will self-document using longer names.

Sherman
9 months ago
Thank you for referring me to Scanner. I found the below code and I added the if statement and the length() statement. I wanted to know if a user just presses enter so I can let that user know that something must be entered. I think the string length let me know that.

9 months ago
Maybe since this is my first post I should introduce myself. I am 71, retired, and creating my own postgresql poker statistics database. I am familiar with PERL and I have never tried coding in C, C++, java, or other oop languages. I am not that familiar with oop so maybe my terminology within the group will be wrong, and I apologize for that. I am doing this in java as a learning tool but with a positive script that I can actually use.

Thank you;

Sherman
9 months ago
Name: Sherman
Platform: HP Compaq 6710b
Operating System: Ubuntu 17.10
postgresql version: 9.6
openjdk version: 9
javac version: 1.8

How can I tell if a user has just pressed the Enter key? What kind of return will I get?

Thank you;

Sherman
9 months ago