Results 1 to 6 of 6
  1. #1
    adrianking is offline Member
    Join Date
    Mar 2013
    Posts
    4
    Rep Power
    0

    Default please help.creating a source code for classes

    need someones help making a source code using all this in a single program assigning, declaring, if, else, else if, do, while, for, switch and method. I need just the simple one.
    Last edited by adrianking; 03-04-2013 at 02:02 PM.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: source code for classes

    What have you done so far? Where are you stuck?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    adrianking is offline Member
    Join Date
    Mar 2013
    Posts
    4
    Rep Power
    0

    Default Re: source code for classes

    nothing yet sir. just a scratch. cant figure what to do. I'm new in this stuff.

    import java.util.*;
    public class sample
    {
    public static void main(String[]arg)
    {
    Scanner keyboard=new Scanner(System.in);
    double a,b,c;

    for (a=1;a<=4;a++)
    System.out.print(+i+ " Enter number ");
    b=keyboard.nextDouble();


    public static int large(int x,int y)
    {
    if(c==100 || c=>90)
    {
    System.out.print("
    }
    else
    if(c=<89 || c=>70)
    {
    System.out.print("
    }
    else
    {
    System.out.print("
    }

    int x=keyboard.nextInt();
    switch(x)
    {
    case 1:
    System.out.println("
    break;
    case 2:
    System.out.println(
    default
    System.out.println(
    }

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: source code for classes

    Format your code with code tags to make it readable. If you don't know how that works... eh, scratch that, read my signature!

    Don't forget to ask a question. Nobody will write code for you, but we'll gladly assist you writing it yourself.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: please help.creating a source code for classes

    Moved from the Forum Lobby.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    adrianking is offline Member
    Join Date
    Mar 2013
    Posts
    4
    Rep Power
    0

    Default Re: source code for classes

    thanks for the support
    Last edited by adrianking; 03-04-2013 at 06:20 PM.

Similar Threads

  1. Replies: 16
    Last Post: 01-31-2012, 09:36 PM
  2. Source code of Predefined classes and methods
    By lobodelbosque in forum New To Java
    Replies: 8
    Last Post: 08-10-2011, 03:11 PM
  3. Replies: 0
    Last Post: 08-07-2011, 09:32 PM
  4. Replies: 1
    Last Post: 11-28-2008, 07:27 PM
  5. Need a source code
    By vissu007 in forum New To Java
    Replies: 1
    Last Post: 07-05-2007, 08:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •