User Profile

Collapse

Profile Sidebar

Collapse
adnan12
adnan12
Last Activity: May 6 '07, 11:13 AM
Joined: Mar 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • adnan12
    started a topic learning loop
    in Java

    learning loop

    I want to write a short program using loop. I wrote one but it doesn’t working. I’m learning loops so it’s hard to find my mistakes. Here’s my code. Please define and correct where I made a mistake.

    Code:
    class Ce {
        public static void main(String[] args) {
    	String tence = "I can use loops.";
    	int count = 0;
    	while (count++ <= 25000) {
    	    System.out.println(tence);
    		break;
    ...
    See more | Go to post

  • adnan12
    replied to trying to get started
    in Java
    Thanks a lot.
    See more | Go to post

    Leave a comment:


  • adnan12
    started a topic trying to get started
    in Java

    trying to get started

    What could be wrong in this file?



    class Motorcycle {
    String make;
    String color;
    boolean startengine;
    public static void main (String args[]) {
    Motorcycle m=new Motorcycle ();
    m.make = "Yamaha RZ350";
    m.color = "yellow";
    System.out.prin tln("Calling showAtts...");
    m.ShowAtts...
    See more | Go to post
No activity results to display
Show More
Working...