Sunday 29 May 2016

Display a welcome message at startup

 

Windows 7

 

  • Select Start > Run > then type "regedit" and press the Enter key.
  • Expand the following registry key: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Policies > System
  • The next step will invole the modifiaction of two keys
    • LegalNoticeCaption - The title of the pop-up menu
    • LegalNoticeText- the message content
  • These two keys are located in the right pane. Double click on them and edit the value field to your convenience.
  • Once done close the registry editor and restart your PC.

Hope this article helped you! Please feel free to comment!
Follow us on way4testing.blogspot.in

Saturday 13 February 2016

Basic Programs of core java

1) package java1;

public class firstjavaclass {

    public static void main(String[] args) {
  System.out.println("1st print");
int x=10; int y=20;

    }

}

O/P : 1st print

2) Concatination_Operator

public class Concatination_Operator {

    public static void main(String[] args) {
        String x = "Hello";
        String y = "3D";
        int a=100; int b=200; 
        System.out.println (x+y);
        System.out.println (x+y+a+b);
        System.out.println (a+b+x+y);
        System.out.println (x+y+(a+b));
    }

}

O/P : Hello3D
         Hello3D100200
         300Hello3D
         Hello3D300