Reputation: 4818 Guru
- Active Posts:
- 13,164 (4.25 per day)
- 18-April 07
- Profile Views:
- Last Active:
- 33 minutes ago
- Viewing Board Index
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Who Cares
- Dream Kudos:
- Expert In:
Posts I've Made
Posted 8 Oct 2015I am not sure what exactly you are asking after all your edits. So here is what I know...
1) Your code snippet there compiles fine. So don't change that (except perhaps add the word "public" on the front, but it works without it). Just make sure it is in the file Example.java
2) When you compile it with javac, just make sure you are either in the folder where you saved Example.java or specify the full path to javac if you are not in the same directory as the file.
3) Check the folder after compiling to make sure you have a .class file built.
4) In your command prompt you can type javac -version and if you get a reply it means it can see your JDK install correctly.
Posted 8 Oct 2015Welcome to Dream.In.Code KAJPack! You don't have to be the most gifted programmer on the planet, all that programming asks you to do is be rational and logical about how you solve problems. Do that and the rest should fall into place. But be warned, many people just don't think rationally or logically!
If you have any problems, be sure to show us your code (in code tags please) along with any error messages. We will jump in and do what we can to help out and give you a push in the right direction.
Thanks for signing up and letting everyone know a bit about yourself.
Posted 8 Oct 2015Well what you are basically talking about is what we call a "softphone" and if you do a search on the net you will see a lot of programs for making calls over the computer that have all the bells and whistles (plus more) that you are talking about. Believe me, I should know. The company I work for builds such programs.
Now I assume you are wanting to bring your actual phone into the mix by plugging it in. I am not sure anyone really cares to go that far if they can get all their contacts etc auto-synced between devices.
One API you may be interested in looking at is called Twilio. This API has many of the VoIP features you might be interested in for building your own softphone. A couple other technologies you may find of interest...
Hope this helps get you started!
Posted 8 Oct 2015Ok well let's think about the direction for a minute. How might we represent a direction using an integer? We know it is an integer because position is defined as an int. Well, on a horizontal number line we have positive and negative directions right? So we might consider direction either being 1 or -1. 1 for being right and -1 for being left.
Now how many units? We know that units again is an integer and that integer again could be on a number line since it is direction is horizontal. So if we need to move five to the right we know that it is 5 * 1 or 5 units from the current position. If we turn and need to move 3 units, we know we need to take our current position and add to it 3 * -1 or -3. Meaning we end up on 2 ( 5 + -3 ).
Get the idea? If we turn again and go 2 more units we are at position 2 + (2 * 1) or position 4. If we turn left and go one position we are 4 + (1 * -1) or position 3. Boiling this down it is Position + (units * direction) = new position where direction = 1 or -1.
Hope that helps
Posted 8 Oct 2015Welcome to Dream.In.Code Jacob! Thanks for signing up and letting us know a bit about you. C++ is going to be a very useful and versatile language for you to learn. Learn it well and it won't let you down. It will certainly provide you the needed skills to also learn other languages and technologies.
If you ever have any questions, be sure to post your questions (with code tags please) along with any error messages and we will do what we can to point you in the right direction.
- Member Title:
- Programming Theoretician
- Age Unknown
- Birthday Unknown
- Vancouver, Canada
I love programming and science (almost became a chemist). My favorite languages are C#, Java, Python and PHP. While I am not programming I enjoy movies that feature something medieval (Gladiator, Braveheart etc) or high tech (like Hackers or Swordfish).
I have a diploma in computer science and another in arts and science. My favorite sciences are astronomy, chemistry and geology.
If you have any questions regarding programming, you will find I live and breathe the stuff and should prove an invaluable asset.
Winner of 28 2008-2014 DIC Community Awards including Blog of the Year, Mentor of the Year, DIC Head of the Year, Most helpful Programming Category, Most Helpful in Web Development Category and overall Nicest Member of the year.
You can now catch me on Twitter! Follow me as I talk about technology and specifically programming and answer questions like the best book to learn from or how to organize your code.
- Years Programming:
- Programming Languages:
- Website URL:
Showing 50 random friends of 212 (View all)