Fun coding

Last week I had come across the ‘An hour coding’ on khan academy  and it helped me get back to coding. I had cread some cool drawings on the plateform and then I continued this using java how to program book and luckyly I had no work load in office since last couple of weeks so every thing was a favopur of coding for me. Today I did this coding and I really enjoy it when I see the output.:-D

import java.util.*;
import java.lang.*;

/* Name of the class has to be “Main” only if the class is public. */
class arrayTest {
public static void main(String [] args){
 double[] myList= {12.0,6.5,7.5,5.0,2.5,10.0,20.0};
 for(int i =0; i<myList.length;i++){
  System.out.println(i + “:” + myList[i] );
 double total = 0;
 for(int j= 0;j<myList.length; j++){
 // System.out.println(“Total is ” + total);
 System.out.println(“Total is ” + total);

I hope this time it will continue.

Lastly I would like to recomment ideone for all those who want to do coding but don’t like or know how to install the compilors. This is really cool plateform to edit, compile and run your codes in any language.


About Karim Shah's Blog Life is what we expect from it

An energetic and optimistic person who always looks at life with hope and courage. Strongly believe in everything happens for a reason and for good. Life is what you dream of it. Every situation is what you give meaning to it. There is nothing as such existing except what we give meaning to it.
This entry was posted in I Do, I Think and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s