Results 1 to 3 of 3
  1. #1
    mindblaster's Avatar
    mindblaster is offline Member
    Join Date
    Dec 2009
    Rep Power

    Default Give me some Assigment please

    Please any one give me some assigment in java,

    i am newbie in java and i learned java in home not in institute,

    so please....................
    Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

  2. #2
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Rep Power


    Hi dude,

    See that depends of what you know about java and what you dont. Do like simple arrays. Write an array that does not have a predifined size(normaly when you create an array you have to tell it what size it needs to be). Write a binary search algorithm, linear searc, sorting algorith... all of those can be included with arrays.

    Good luck;

  3. #3
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Ljubljana, Slovenia
    Rep Power


    At first, I would familiarize myself with the basics, loops, if statements, passing values through command line at runtime, the difference between primitives and objects (ex: int a = 5; or Integer a = new Integer(5)), basic operations on an array of fixed size, then move on to classes and objects, differences between static and non-static variables and methods.
    a few simple tasks would be something like this:
    make a program that accepts an integer as a command line argument, and prints out all numbers between 1 and the given number:
    java Prog 10
    1 2 3 4 5 6 7 8 9 10
    Then, only odd or even numbers:
    java Prog2 10
    2 4 6 8 10
    1 3 5 7 9
    One of the first homework assignments I got at uni was to print out a tree of numbers, like this:
    java NumTree 5 <- (5 is the number of lines)
    Java Code:

Similar Threads

  1. Help with Assigment needed.
    By darkblue24 in forum New To Java
    Replies: 40
    Last Post: 01-28-2010, 11:06 AM
  2. my java assigment problem!
    By lieni in forum New To Java
    Replies: 16
    Last Post: 01-28-2010, 12:06 AM
  3. I need some one to give me a hand
    By HosHos in forum Advanced Java
    Replies: 9
    Last Post: 09-05-2009, 03:18 PM
  4. how to give delay?
    By shaluchandran in forum New To Java
    Replies: 10
    Last Post: 12-17-2008, 05:57 PM
  5. Help with variable assigment to String
    By silvia in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:43 AM

Posting Permissions

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