User Profile

Collapse

Profile Sidebar

Collapse
LOVE4EVER
LOVE4EVER
Last Activity: Apr 12 '08, 12:42 PM
Joined: Apr 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LOVE4EVER
    replied to Adding 2 Number In Java
    in Java
    i understant now why the errors because there is no method so i put the method and its really nice to see that no errors in the code but when i open the .class file it give me this statment
    >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>

    Exception in thread "main" java.lang.NoSuc hMethodError: main

    >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>...
    See more | Go to post

    Leave a comment:


  • LOVE4EVER
    replied to Adding 2 Number In Java
    in Java
    i talled you guys i am new in java i used to programming in c++ and when i did
    this very simple program i was using my information about c++ but never mind i didnt copy this problem without reading java tutorial but maybe you are see it simple problem for you but for me its not and i did a program that compute the result without the user enter the number but any way thx for help and the information its really helpful and of cource in the...
    See more | Go to post

    Leave a comment:


  • LOVE4EVER
    replied to Adding 2 Number In Java
    in Java
    i did all the things you told me guys but i am still having the same errors

    this is the the new code
    Code:
    import java.util.Scanner;
    public class cal{
    
    Scanner read = new Scanner(System.in);
    
    int a =read.nextInt();
    int b =read.nextInt();
    int c =a+b;
    System.out.println (c);
    }
    2 errors
    >>>>>>>>>>>>>>> >>>>>>>>>...
    See more | Go to post

    Leave a comment:


  • LOVE4EVER
    replied to Adding 2 Number In Java
    in Java
    thx for the information a lot sukatoa its really helped me

    now the code is like this
    Code:
    import java.io.*;
    import java.util.Scanner;
    public class cal{
    
    
    
    Scanner read = new Scanner(system.in);
    
    int a =read.nextInt();
    int b =read.nextInt();
    int c =a+b;
    system.out.println(c);
    }
    there are 2 errors
    >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>...
    See more | Go to post

    Leave a comment:


  • LOVE4EVER
    started a topic Adding 2 Number In Java
    in Java

    Adding 2 Number In Java

    HI PPL

    I DID A SIMPLE PROGRAM THAT ADD 2 NUMBER BUT I AM HAVING PROBLEM IN ENTER THE NUMBER FROM THE USER

    Code:
    import java.io.*;
    public class cal{
    
    
    int a=0;
    int b=0;
    int c=0;
    
    
    a =reader.readLine();
    b =reader.readLine();
    c =a+b;
    system.out.println(c);
    }
    >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>...
    See more | Go to post
No activity results to display
Show More
Working...