public class chard { public static void main(String[] args) { char ch1; for (ch1 = 'A';ch1 == 'Z';ch1++){ System.out.println(ch1); } } }
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
public class chard { public static void main(String[] args) { char ch1; for (ch1 = 'A';ch1 == 'Z';ch1++){ System.out.println(ch1); } } }
I have moved this to the appropriate forum. Do you have a question or problem?
yeah doesnt work lol idk why...
As I'm totally psychic, I know exactly what your issues are, so here's some spoon-fed code which is 110% guaranteed to do what you need.
Enjoy!
public class Main { public static void main(String[] deadlyAquaNinja) throws InterruptedException { float me = 5.6f; if (deadlyAquaNinja.length > me) { System.out.println("Run"); } else { long eternity = Long.MAX_VALUE; while (true) { Thread.sleep(eternity); } } } }
On topic: If you posted questions, regarding why your program doesn't work and what the outcome is supposed to be in relation to what It was, then you would've been given the answer
Last edited by newbie; September 25th, 2011 at 01:45 PM.
Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code
As Newbie pointed out, we don't know why either. 'It doesn't work' can mean a great many things without know what you want it to do.yeah doesnt work lol idk why...