Hello to the World1 min read
Hello to the world and welcome to ZingScoop.
All great things come from small beginnings.
And here I’m starting my small beginning on a long journey and I’m very excited to announce that ZingScoop is finally up and running. In the programming world, no matter how much we learned from our past experience and we all know that we just started with the “Hello World” program in school or college or studied on their own irrespective of the programming language.
When the screen shows the hello world output and we were like “Wow” with so much excitement since we have made the computer to do something which you have instructed.
Take a pause and think back all the way to hello world and come back to the current working project or software/apps which you have build or company which you’re running right now. It will be like another “Wow” moment.
With this, let me start my small beginning with java 8 since I’m using it in my current project.
Instead of just saying System.out.println("Hello world")
and bringing up the output. Why don’t try some basic functional interface and do it?
package com.zingscoop.helloworld;
@FunctionalInterface
interface HelloWorld {
String sayHelloWorld(String helloString);
}
public class HelloWorldTest {
public static void main(String[] args) {
HelloWorld helloWorld = (String fromString) -> {
return "Hello World " + fromString;
};
System.out.println(helloWorld.sayHelloWorld("From ZingScoop !!"));
}
}
And the output will be as belowHello WorldFrom ZingScoop !!
Thanks for scooping and we will give you some more surprising small or big scoops going forward.
Scoop it !!
That’s a nice scoop