Microsoft pushes out Windows 10 preview with new mail and calendar apps

Microsoft today released a new Windows 10 Technical Preview for PCs, Build 1061. The preview includes new mail and calendar apps, and improvements to Start, Taskbar, and Action Center.
It also adds optimization of the Task Bar for tablets, Task View improvements, and the ability to create as many virtual desktops as needed.

Apps

The new email and calendar apps use a three-pane email user interface, with the ability to toggle quickly between the two. The Mail app includes customizable swipe gesture support, allowing users to swipe right or left to do things like delete, flag, move, or mark email as read or unread.

The apps also offer users some tricks that are more like Microsoft Word than email. It’s easy to insert tables, add pictures, and use bullets and color in text, Microsoft says. Both the new Mail and Calendar apps support Office 365, Exchange, Outlook.com, Gmail, IMAP, POP, and other email clients

Start and Taskbar

The Start menu and Taskbar now have a transparent look. In the Settings app under Personalization, users can adjust the color of Start, Taskbar, and Action Center as well as the transparency. The Start menu can be resized. Start and Taskbar also now employ AutoColor, which pulls in the primary colors from the desktop background.

Virtual desktops everywhere

Users can now create as many Virtual Desktops as they want. When they hit the limit s of the display, Microsoft says, a new overflow experience lets users access any one of their desktops.
Build 1061 comes just a few weeks after Microsoft launched its last Windows 10 preview for PCs on March 30. That release included Project Spartan, the company’s new browser shipping on all Windows 10 devices (smartphones, tablets, PCs, and so on).

How to print alphabet using char values in JAVA

First you have to code a java program by using variables and a flow control.

You may need:
  • a char variable to store current char value
  • flow control structure (for,while,or do while loop)
  • command to print current char value
First we create a class program and a main method using java

class ascii{
           public static void main(String args[]){

           }
}

Now create a char variable to store a char value and initialize it to zero.

class ascii{
          public static void main(String args[]){
                      char c=0; //char variable named c
          }
}

Now we want a flow control structure to automate printing process. Here I used for loop but you can use while or do while loop also.

class ascii{
           public static void main(String args[]){

                     char c=0; //char variable named c

                     for(c=65;c<91;c++){

                     }
          }
}

Here I have initialize c as 65 (c=65) because “A” in ASCII is 65 and terminate value as 91 because here I stop printing process after printing “Z”.

Now we want a command to print this in command prompt screen.

class ascii{
           public static void main(String args[]){

                    char c=0; //char variable named c

                    for(c=65;c<91;c++){

                               System.out.print(c+“ ”);

                    }
          }
}

So here print command print ascii value and space. This will run until variable reaches it's terminating value.

Here is the complete code.

Now save your java program with .java extension
After compiling(javac a1.java) run your java program with java “class name”
Then the final output is shown below.

------------------------
Note
------------------------

If you want simple letters you can start c=97 and terminating value as 123
eg: for(c=97;c<123;c++){}
Thanks.

Bubble Sort


Hi good evening friends

Today one of my friends asked about “bubble sort” related to JAVA array sorting

 

So this is a description about bubble sort -

Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller elements "bubble" to the top of the list. Although the algorithm is simple, it is too slow and impractical for most problems even when compared to insertion sort. It can be practical if the input is usually in sort order but may occasionally have some out-of-order elements nearly in position.  –Wiki


public class arraysort {

  public static void main(String[] args) {

        int[] list = {2, 4, 7, 10, 11, 45, 50, 59, 60, 66, 69, 70, 79};


  // bubble sort (array)

    int test[]={90,45,50,80,100,-45,0,235,807};

    int temp,j,i;

    for(j=0;j<=test.length;j++){    // I used this for loop to continue bubble sort part until whole array is sorted

    for( i=0;i< test.length-1;i++){

    if(test[i]>test[i+1]){

     // if  90  >   45

        temp=test[i+1];

        //store 45 in temp;

        test[i+1]=test[i];

        //put the 45 in 90's place

        test[i]=temp;

        //put the 90 in 45's place

   }}}

    for(i=0;test.length>i;i++)

   System.out.println(test[i]);  

}

    }






more examples





   

   

 

How to run a java code without an IDE


Hi friends today I’m going to explain how to run java program without an IDE, using command prompt on windows systems.

First of all you should code your program using a text editor such as notepad and save it as a java program, do not forget to set your file name exactly to same with java class.

 Here this is an example,

 

I coded my program in notepad and its class name is “a11” (I think you have a little knowledge about java basics)

And now im going to save my notepad document,
File name must be same with class so here you can see File name is a11.java, no need to confuse about file extension we are going to run a little java program. So it’s should be a java file.  In this tutorial I will save this file in a folder already I created on my desktop.

Well document saved, now what you have to do? Now you are ready to your java program. Mmmm wait before that you have few steps to do.

Hit windows key and type “cmd” on your start screen, or type on Cortana.

Now hit enter, or click on the command prompt, then you will see command prompt window,

This is the command prompt, (guys do not worry about the colors of your command prompt window usually it is black and light text. I have a special edition  J ha ha im kidding I just change colors because I like this way that’s all)
To access my file im going to open Desktop in my command prompt. To do this type this little command and hit the Enter key

cd Desktop

Well now you are in the Desktop, to access the folder type same command with your folder name, my folder name is My Java Works

Now you are in your folder that contain your java file before you saved.
Ok now we want to set the path to do this you have to go to the bin folder in the JDK installation directory
C:\Program Files\Java\jdk1.8.0_40
And open the bin folder, now copy the address in the address bar its look like this
“C:\Program Files\Java\jdk1.8.0_40\bin”
That’s all go back to the command prompt and paste the address you copied. (Remember you are not allow to use “ctrl+v” paste shortcut in command prompt.) So be kind to right click and select paste.
This is the command
Set path=”C:\Program Files\Java\jdk1.8.0_40\bin”;%setpath%

Nothing will happen so do not confuse, then set the class path
Type this command,
set classpath=“.;%classpath%     then hit enter


Well you completed setting paths, few more thing you have to do,
Now we can compile our java program this is the command,
Javac {filename. Extension} 
May be it will take 2 or 3 seconds depending on your java program nothing will pop out,
Now you can run your java program to do this type this command in your cmd,
java {file name without extension} and hit enter


This is the output of my java program

Ok guys thank you very much for reading this and I think if you didn’t know how to run java programs on command prompt, now you know J