A simple code from the book. Why it use applet.repaint() instead of applet.paint() in the listener?
paint() is a public method in class Dots, why I cannot do applet.paint() in which applet is an object of class Dots.
--------------------------
import java.applet.Applet;
import java.awt.*...
OK, it passes the value of the reference, not the value of the object into a method. When the new reference (in the mothod) pointes to another string object the original reference remains pointing to the original object.
sedj,
Thank you for your response.
If a String is unchangeable, there must a copy of the string, not the copy of its reference, in the above method (so that it can be changed in the method while not affect the string in the main). That means an object (the string) is copied in the method!
Thank you for the interesting links.
However, still need your explanation:
A string is an object?
In the above method, static String test(String s), s is the reference of a String? Any change of s in the method will change the value of s in the main?
Hi,
This should be very simple, but I am a beginner.
1. An object is passed to a method by reference?
2. A string is an object?
3. Hence, a string is passed to a meshod by reference?
public class Try
{
public static void main(String[] args)
{
String s="222222"...
electronicsfreak,
Thank you. I have just checked that I got no Autoupdates for the system. And, there is no Scheduled Task for the auto defrag in the Control Panel.
Put my mouse cursor in following Sub and then press F5, I can run it:
Private Sub try()
MsgBox "aaaaa"
End Sub
It can fire "Sub objItems_ItemAdd(ByVal Item As Object)" when new email comes.
Or try this:
Data is in Column A. In column B2, enter this formula:
=LEN(A2) (assuming row 1 contains header data) and copy down the formula.
Then sort by column B,A.
I tried what you said but "Compile Project1" was still grey.
I think I should tell you that all my code is under "VbaProject.OTM - ThisOutlookSession (Code)
Hi
In Microsoft Outlook 2000.
After modifying the VBA code, do I need to close-save-open Outlook so that the it will run on the new code? Is there any compiling behind?
Thank you in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.