Search:
Type: Posts; User: 357mag
Search:
Search took 0.03 seconds.
-
I found out that you don't want to use == to compare strings in Java. You need to use .equals method or the .compare method.
-
I tested to see what was contained in the personsGuitar variable after that line executed and indeed LesPaul was in that variable. I also tested to see what was in the personsHairStyle variable...
-
I have this cool program that uses a logical operator to join two conditions in an if statement. Basically for a person to get a job playing for Ozzy Osbourne you have to play a LesPaul and you have...
-
I could not see any thing that says how to post code. I suspected it would be [code] [/] but it looks like that didn't work. I'm using Java 20 its I think the latest version with Eclipse.
-
I got this program using nested ifs and it compiles fine but gives me the wrong outcome. The way it is now, when I run the code and the first question shows "Enter the number of years you have been...
-
October 1st, 2019, 10:04 AM
Nothing will be random. I will decide ahead of time which is question one, question two, question three and so on. It will not be web based. No. This is for fun. It will be a standalone application....
-
September 30th, 2019, 07:25 AM
Most of my programming over the years has been console apps. The kind you see in books. But now I want to start writing some Windows based programs. I wish to write a Psychology Test intended for fun...
-
September 12th, 2019, 12:21 PM
I fixed it. You have to use the OR operator. Not the AND operator.
-
September 12th, 2019, 12:19 PM
Even if I write the while loop like you suggested my program still only outputs the bit places that represent the actual divisions that were needed. If I enter the integer 58 my program should output...
-
September 11th, 2019, 09:40 AM
Okay I initialized my array to all zeros first and ran the code again. But the program still does not output all eight bit places. If I enter in the integer 4 my program outputs 100. Where is the...
-
September 8th, 2019, 03:53 PM
How do I use these code tags so my code looks correct? Okay now.
-
September 8th, 2019, 03:50 PM
I'm working with a program that converts an integer to it's binary equivalent. My program works fine. Now to get into some details: If I enter the integer 148 my program will output 10010100 which is...
-
December 12th, 2017, 02:48 AM
What do you need to download in order to program in C#? If I don't want to use Visual Studio, but let's say something like Zeus or TextPad, what do I need to download?
-
December 7th, 2017, 06:44 PM
-
December 7th, 2017, 08:41 AM
Okay let's say I do not want to use the console to get user input. I could import Swing and use JTextField and get the user to input a number in that GUI component. My question is can I write code so...
-
September 3rd, 2017, 06:23 AM
Years ago when I was writing C++ code I remember you could not name a source file with spaces between the words. For example this was not allowed:
Hot Pancakes
You had to do this:
...
-
March 12th, 2017, 12:24 PM
I've discovered this neat, little IDE called QuickSharp that would be great for me, but all I need to figure out is how to configure it so it will run my program in an external window. I know it is...
-
February 11th, 2017, 02:23 PM
Was wondering if there is a way to tell Eclipse to execute my Java program but not show the output in the internal console window but rather show the output in an external DOS window.
I would...
-
February 4th, 2017, 12:47 AM
Oh, I figured it out. In order to make the code produce the correct result I needed to reset variable x back to 10 before I wrote the second prefix expression.
Runs good now.
-
February 4th, 2017, 12:36 AM
This code snippet shows the difference between the postfix and prefix versions of the increment operator. I got it out of a Schildt book. I realize many don't like the guy but I do like his style and...
-
January 29th, 2017, 08:47 PM
Tonight I started using Visual Studio 2013 as I have never used this IDE before but it's the way to go for sure so...
The option of creating an Empty Project is no longer there. I can either...
-
January 3rd, 2017, 09:34 PM
-
January 3rd, 2017, 07:05 PM
No. I tried that too and I still get errors. Things like No such file or directory. No input files. The specified file was not found. Something is wrong in my environment configuration and I don't...
-
January 3rd, 2017, 04:23 PM
I am using Notepad++ with C++ and I have a short program that prompts the user to enter an integer. After he enters his number, the program should output the number that he just entered. But for...
-
December 25th, 2013, 02:36 AM
Okay I have an int variable and a double variable. The int is set to 10. The double is set to 10.0. To my surprise when I went to view the output both said 10. There was no .0 to the right on the...
|
Click Here to Expand Forum to Full Width
|