Just to add to the discussion, I believe it is possible to speed up your pc using a USB and ReadyBoost. I have very little knowledge about this however so it may not be possible. Have a go though, right click on your USB in 'My Computer' and select Properties. Go to the ReadyBoost tab and follow the instructions and see if this helps at all.

If not then you will need to try something else I'm afraid.

What you've done is great, you have literally missed one tiny detail.

The replace method in String returns a new String object. Currently you are calling the method but not putting the result anywhere. So when you return the variable 'string', you return what you gave it.

Try using string = string.replace(ch,'1'); instead. This means you are then assigning the result of replacing the capital letters to your string variable.

Good Work. Well done

In future, if you get stuck, have a look at the java Documentation online. Google something like 'Java String doc' and it will come up. It's really useful

aslam.junaid786 commented: It is working sir, Thank you so much and yeah I'll keep that in mind. +0

That is truely amazing. Not that he can write code, because realistically, anyone can do that given the time and resources...but that someone was willing to give him a chance, that's inspirational.

Thank you for sharing this

Ok, Imagine an actual physical book.

This is what you are trying to describe in your class. Whenever we program in Object Oriented Programming 'OOP', we try to Describe and Model real world Objects.

So let's start,

All books have an Author, a Title, Pages, Reference Numbers and Identity Numbers.

These are the properties of a Book, we put these in the fields of the class. The Fields are the variables placed at the top of the class e.g private int pages

Next we have Methods. These are ways of manipulating the Book object.

There are two types of Methods, Accessors and Mutators. Accessors GET information and therefire have a Return statement. Mutators change/mutate the data.

The idea behind OOP is to be able to write the description of something once and implement it many times. So we have written a Book class, and now we can use it to make 1000 books or more if we please.

Hopefully this has clued you up more on the aim of a Class.

There are things here that you cannot do, e.g. add a Book to a Book, you need to have another class that maintains a Collection of Books (e.g a Library)

I think this is all the information I can give due to the nature of the forum where I cannot help you first hand. If you still have problems with coding, I'd recommend getting the 'Objects First with Java' book written by Kolling and Barnes. These are the people ...

There is no need for the If statement to be there.

When you iterator through your Collection, you either find the desired item, or you don't. These are your only 2 outcomes.

  1. Item Found - Return the Item object, method stop executing when a value is returned

  2. Item not Found - While loop finishes, Code after is Executed. Regardless of the if statement, the return value is always null. So if the method does not find the desired item, it always returns null.

Because of this, there is no need to check if the item is null as the outcome will always be the same.

Hope this helps

I don't think there is a built in function of Eclipse that offers this, however they may be a plugin floating around out there. I'd have a look for that

I'd recommend getting used to programming command line programs in Java before hopping into GUI's. I recommend this because a lot of the underlying functionality is key to writing a good program. If you start at GUI's, you tend to focus more on interface design and less on the program functionality.

If you choose to take this advice, have a look at the following:
Object Oriented Design
Java Types
Java Collections (ArrayList, HashMap, HashSet, Array)
Error Handling

These will give you a good foundation to writing Java programs.

Hope this was helpful

I'm assuming that because you are using BlueJ, you are in your first semester of a Computer Science Course or related course. On this assumption I am going to recommend you talk to a tutor or to some class mates as the question seems to be related to a specific piece of code provided by your tutor.

Well computer DateTime is actually stored at a 64bit number.

This number started on Jan 1, 1970.

so for you ID you can use this 64bit number as it can uniquely identify a record. It can also be used (with some additional processing) to give you a DateTime. 2 Birds with one stone

For the date use the Date.Today() function.

To take the date from the format dd/mm/yyyy and put it in the form ddmmyyyy you will need to build a new string like this Date.Today.Day & Date.Today.Month & Date.Today.Year

To check if a file exists you need to use the System.IO.File.Exists(path) function

Hope this helps. Should be enough to complete your task

What are the steps for doing that?

What NormR1 is saying that you need to think through each step you take when you try to solve a sodoku. The write down each step in it's simplest terms e.g. "Look at row" -> "does row contain each number 1 - 9?" etc etc

Then most importantly...WRITE YOUR STEPS DOWN!

This makes is much easier to program

Have a look into Requirements Engineering on places like Google Scholar . This will help you look at systems from more of a technical view. Once you;ve managed to understand how to think from the point of view of data movement you will find it a bit easier to start programming.

Another good thing to look at is Systems Architecture as this will help you map out what the system has to do in an easy to understand manner and break each part of the system down.

My final piece of advice is to program with pen and paper first. So rather than going straight into programming, instead write out what you want to system to do etc. Then how do you expect to do this. This method will help you sit down and actually think about the software.

You need to create a network connection between the two clients (you and your friend). The most commonly way to do this in VB.NET is to use a communication protocol called TCP. Have a search for "VB.NET TCP NETWORKING" and see what it throws up.

Try this

    Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        'KeyDown switch

        Select Case e.KeyCode

            Case Keys.Enter

                'Is the textbox not null
                If TextBox1.Text <> Nothing Then

                    'EXECUTE INSTRUCTIONS

                End If

        End Select

    End Sub

If there's anything you want clarified just post a reply.

Khav commented: From Khav ..ty for help +2

Im confused. Is the thumbnail a picture of your program or is that what you want to achieve?

Also are you using a random integer generator to create the values?

try this

[CODE]public sub ListFiles()

'DIR for folder
'add each file to ListBox control

For each file as string in IO.directory.getfiles(Folder Path)
Listbox.items.Add(file)
next

End Sub[/CODE]