Results 1 to 3 of 3
- 12-10-2012, 05:00 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 68
- Rep Power
- 0
Having a problem with Acii help please!
Hey guys im trying to make a program for class that there is 4 letters and depending on which three you put in it will show you all the possible orders it could be in. for example the letters offered are a b c and d if you select a b and c then it will show you all the possible combinations of those three letters. here is my code
every time i run it it prints out one large number then nothing else, help pleaseJava Code:import java.io.*; public class Prog520a { public static void main(String args[]) { char a = 'A'; char b = 'B'; char c = 'C'; int C = 65; int B = 1; int A = 1; char Acii = (char) C; if(C != 67) { C++; System.out.println((char) a + (char) a + Acii); if(Acii == 67) { C = 1; C++; System.out.println(a + b + Acii); if(Acii == 67) { } } } } }
- 12-10-2012, 05:11 AM #2
Member
- Join Date
- Sep 2012
- Posts
- 68
- Rep Power
- 0
Re: Having a problem with Acii help please!
never mind guys i figured it out, i just had to put spaces between the a's and the Acii in the print line.
- 12-10-2012, 08:28 AM #3
Re: Having a problem with Acii help please!
Learn and follow the Java coding conventions. Variable names should start with a lowercase letter.
Code Conventions for the Java Programming Language: Contents
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Delay between 2 same timings problem (Video of explanation of the problem inside)
By Lionlev in forum Advanced JavaReplies: 0Last Post: 11-07-2012, 12:44 PM -
Small problem with problem with Java, C++ parse program.
By dragstang86 in forum New To JavaReplies: 4Last Post: 10-30-2011, 03:43 AM -
Can anyone see the problem with my code? problem understanding switch (newbish)
By keith in forum New To JavaReplies: 9Last Post: 09-21-2010, 04:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks