User Profile

Collapse

Profile Sidebar

Collapse
mayfjf
mayfjf
Last Activity: Mar 3 '07, 01:24 AM
Joined: Jan 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    I was just wondering before why cant I use the code:

    Code:
    protected class class1{
    .
    .
    .
    }
    but I guess I have now the answer. Is it because protected is a method/field modifier??...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on importing packages, pls...
    in Java
    Yeah! I got it! I just moved a folder and it worked!! Thanks!

    May...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on importing packages, pls...
    in Java
    Thank you very much!! It works really well and I have now a good idea about some of the modifiers that I have tried using in the code above (static, protected, public). I will try to use the rest of the modifiers for me to have a good view about them. I had lost my interest in java when I first saw how complicated it is. But now, I am really excited to learn more about it.You know, I was just forced to study java. BTW, thanks a lot!!!
    ...
    See more | Go to post

    Leave a comment:


  • mayfjf
    started a topic I need help on importing packages, pls...
    in Java

    I need help on importing packages, pls...

    I have already tried the ff, and they compiled well:
    Code:
    //SAMPLE PROGRAM ON THE USE OF STATIC MODIFIER
    
    package java_samples;
    
    public class samp1{
    	
    	public static void main(String args[]){
    		System.out.println(1+2+"3");
    		System.out.println("1"+ 2+1+2);
    		class1.member1();
    		class1.member2();
    		System.out.println(class1.part1); //
    ...
    See more | Go to post

  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    I have already tried some simple programs using static , and here is my sample codes, (these compile)...

    Code:
    //SAMPLE PROGRAM ON THE USE OF STATIC MODIFIER
    
    package java_samples;
    
    class samp1{
    	
    	public static void main(String args[]){
    		System.out.println(1+2+"3");
    		System.out.println("1"+ 2+1+2);
    		class1.member1();
    		class1.member2();
    ...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    Yeah, sorry for making anyone confused. I am really new to TSDN and I myself didn't know how did I post two threads with one subject. Maybe I have clicked the 'Submit reply ' button twice. Next time, i'd be very careful.

    May...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    Thanks... It really helps!

    May...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    yeah, your right... I will try. Thanks!...
    See more | Go to post

    Leave a comment:


  • mayfjf
    replied to I need help on java modifiers, pls.
    in Java
    ...that when a method is static, you cannot change it outside the class. But why is it that the values of variables inside the main( ) can still be changed even if main( ) is declared as static?

    ...that a public class can be accessed by classes that belong to the other package. Is package related to group? I have not yet developed several program that exist in the same package.

    ... that if a class uses a default modifer,...
    See more | Go to post

    Leave a comment:


  • mayfjf
    started a topic I need help on java modifiers, pls.
    in Java

    I need help on java modifiers, pls.

    1. Hello, I wonder what are the differences between modifiers? Private, public, default, static...? I have reread and reread my java book, but I just can't understand. Thanks for any info...

    May
    See more | Go to post

  • mayfjf
    started a topic I need help on java modifiers, pls.
    in Java

    I need help on java modifiers, pls.

    1.Hello, I wonder what are the differences between modifiers? Private, public, default, static...? I have reread and reread my java book, but I just can't understand.
    See more | Go to post

  • mayfjf
    started a topic HELLO!! I need help!!
    in Java

    HELLO!! I need help!!

    Hello, everyone, I am May. Is there a solution to java's clear screen problem? Thanks... I will be waiting for your suggestions...
    See more | Go to post
No activity results to display
Show More
Working...