Video : Ruby for Java Programmers – String, Numbers, Classes and Objects

Ruby
Welcome to the Video Series – Ruby for Java Programmers. The objective of this video is to help experienced Java programmers to learn Ruby.This video covers Strings, Numbers, Classes and Objects at a very high level. In future we will come up with detailed videos for each of these topics. Watch the Video “Hello World” program in ruby can be written by a one line code – “put s Hello World”. In Java, double quotes are used to represent a string. In Ruby, both single... more →
Posted in: Frameworks, Programming

Java 7 : Using String in switch statement

Java
At last java 7 started supporting String object as a parameter to switch statement. Previously it was numbers and enumerations. I am sure this will be a welcoming change to the Java community. [code] public class WeekTeller { public static void main (String [] args) { String weekCode = args[0]; switch (weekCode) { case "M": { System.out.println("Monday"); break; } case "T": { System.out.println("Tuesday"); break; } case "W": { System.out.println("Wednesday"); break; } case... more →
Posted in: Java, Programming