Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Steve Kedzie

Greenhorn
+ Follow
since Jul 30, 2014
Steve likes ...
Mac Netbeans IDE Ruby
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
4
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Kedzie

Maybe this will help point you in the right direction:

http://docs.oracle.com/javase/tutorial/essential/exceptions/

You may also want to consult the API documentation. When you click on say, java.lang, you will also find a list of exception classes.

Steve
7 years ago
I misread your original post. In this case then, I would follow through with your intention of not using JAVA_HOME, and just use the absolute path to your JDK in your $PATH env variable. I have a Windows 8 machine configured with JDK 8 and only have the absolute path to the JDK in my $PATH variable as well as a $CLASSPATH env variable set to the parent folder of all my Java projects. Everything is working fine so far and that includes Java EE with Glassfish as well.
7 years ago
Hi Tim,

It looks like you are using \bin twice. If JAVA_HOME is already set to C:\Program Files\Java\jdk1.8.0_11\bin, then %JAVA_HOME% does not need the second \bin or vice-versa.

Steve
7 years ago

Since C# ties you to a single OS,



That is no longer the case with Mono, but that is a whole different monster for another thread.

Core Ruby programming is not necessarily intended for Web development. However, Ruby has been extended into some Web development frameworks, the most common being "Ruby on Rails," followed by Rack and Sinatra among others. It's debated if one should know Ruby before using Rails, etc, but I feel that depends on the user and how steep a learning curve they can handle. Conventional wisdom should dictate that at least a basic understanding of core Ruby should be attained before tackling rails, etc. "rails tutorial" by Michael Hartl, is a pretty good (and free!) book online that walks you through setting up a Rails development environment to using git to running you rails app in the cloud.

Ulf mentioned Python, which is (IMHO) is another good language to have in your arsenal. One of the beauties of Python is that it plays nicely with other languages and there are many libraries available and Python Web frameworks as well. I think Henry's post is probably the best advice in this thread. I recommend looking at some of the "MOOC" courses out there offered by many universities. You do not have to participate in the course, but you can see what text book was used and probably get instructor notes as well. This may help you gain an understanding of the topics Henry suggested.

Steve
7 years ago
Maybe this will help: does numberNameOnes[] need to be visible to all objects external to class Say? Or, should it only be accessible internally to class Say? As far as static is concerned: will any objects of class Say use individual intstances of numberNameOnes[]? Or, will all objects of class Say use the same data contained in numberNameOnes[] everytime? If you can answer these questions, it may help with understanding which access modifiers to use in a class.

Steve
7 years ago
I recommend you create your java programs folder somewhere else other than within "Program Files." Even with Administrator privileges, you will not have full control of that folder unless you go through a process to take ownership and fix permissions. To keep things simple, you should just create a folder directly on the C:\ drive and set your PATH and CLASSPATH to that folder. Once you know you can get everything working, then you could consider finding a better hierarchy to suit your needs.
7 years ago
Take a good look at your constructor for starters, particularly the assignment statements. Please edit your post with code tags so that we can read it much easier.

Steve
8 years ago
The conversion you saw was probbaly a personal choice or it could have been a requirement by a client or instructor.
8 years ago
Ryan,

Are you sure the problem actaully wants you to divide the lengths and not just display them like quote1.length : quote2.length? Commonly, a ratio represents a comparison of the size of two values.

Steve
8 years ago
'\u201d' is Unicode for "right double quotation mark" and just may be your culprit as Greg pointed out. If you are using Windows, I recommend using a text editor like Sublime or Notepad++. Both are free (Sublime asks you to register after so many saves, but you can cancel and keep using the software) and Java friendly. Sublime is also available for Linux. TextWrangler is popular among Mac users.
8 years ago
You can run a quick test to see if Java is up and running. Type "java -version" in a command terminal. It should return with the version of JRE installed on your machine. You can change the command to "javac -version" to get the JDK version. Do not use the quotes. If it does not return anything or gives you an error, use this: "/usr/bin/java -version" (and javac -version) If that fails, the you will need to download and install the JDK. Also, you may need to set your CLASSPATH using the command: export CLASSPATH=.:/Path/to/your/javaPrograms


Good luck!

Steve
8 years ago
Hi Sagun,

Though you may be tempted to jump into using an IDE, I recommend learning with the command line first. It will allow you to focus more on the language and not learning how to use the IDE. Above all else, please don't give up when it gets frustrating, and it WILL get frustrating. There is no harm in taking a break and regrouping to tackle a programming problem. Good luck with your new journey and don't forget that we are all resources for each other on here.

Steve
8 years ago
Apple Basic on dad's Apple IIc 1985, then moved up to an Apple IIGS in 1988. Didn't touch code again until 1998 when in college with an intro to "Programming and Problem Solving with C++" course.
8 years ago
Have you tried other IRC networks? There A LOT of IRC networks out there beyond what are pre-loaded in your client. "Cafe chat" might return some relative search results. Good luck!
8 years ago
There is always the ADT bundle plug-in for Eclipse. Or if you prefer a stand-alone IDE, there is the pre-configured Eclipse ADT/Android SDK bundled IDE.

http://developer.android.com/sdk/index.html

It's available for Linux/Mac/Windows.
8 years ago