WRITE CODE IN ANY LANGUAGE TO SHOW "HELLO WORLD" ON THE SCREEN
By dholey
@dholey (1383)
India
28 responses
• United States
14 Oct 07
As I recall reading on many occasions, "echo" is more efficient than "print".
@swaroop_sv2003 (531)
• India
11 Dec 06
Here is the python code for printing Hello World.
print 'Hello World'
1 person likes this
@swaroop_sv2003 (531)
• India
11 Dec 06
I tried to include the c++ code also but not sure it crashes the myLot site. Note sure whats happening.
1 person likes this
@VictorSinha (927)
• India
11 Dec 06
In Visual Basic .Net we will write
Private Sub Form1_load(byVal sender as object, byVal e as EventAgrs) Handles myBase.Load
Msgbox("Hello World")
End Sub
1 person likes this
@saumav (180)
• India
15 Dec 06
In VB
msgBox "Hello World";
In Shell script:
echo "Hello World"
In JSP:
out.println("Hello World");
in Servelet:
response.write("Hello World");
//where response is the HttpServletResponse type object in method doGet or doPost.
In PHP:
print("Hello World");
In ASP:
Response.write("Hello World");
In C# Console
Console.writeLine("\nHello World");
I think tht will be enough f
@satya_music (586)
• India
27 Dec 06
JAVASCRIPT (3 ways to show mesage)
document.write("HELLO WORLD");
alert("HELLO WORLD");
confirm("HELLO WORLD");
FOXPRO
? "hello world"
@10,10 say "hello world"
vb
msgbox "hello world"
vc++
afxMessageBox("hello world");
c:-
TEXTMODE
printf("\n hello world ");
cprintf("hello world");
puts("\n HELLO WORLD");
GRAPHICS MODE
outtext("hello world");
outtextxy(10,10,"hello world");
c++
cout
@kemadruma (148)
• India
8 Nov 07
public class ankit{
public static void main(){
system.out.println("Hello World");
}
}
@_Greeneye_ (1526)
• India
17 Dec 06
hey u started nice discssions i dont know ny programming but soon ill learn frm ur discussion
@sumit057 (227)
• India
5 Jul 10
IN SPRINGS displaying hello world:-
1) javatest file where main file resides :-
public class Spring3HelloWorldConfigTest {
public static void main(String[] args) {
//Initialize IoC Container or Inversion of Control
// load up the xml rather config file using IOC
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
Spring3HelloWorldConfig.class);
System.out.println("Calling Bean method: sayHello()");
//Retrieve the bean from Container
// Spring3HelloWorld is the class difined where we write method to do our task
// geetBean will get the bean id defined ie @Bean spring3HelloWorld in our case
Spring3HelloWorld myBean = (Spring3HelloWorld) context.getBean("spring3HelloWorld");
myBean.sayHello();
}
}
2:-Configuration file
@Configuration
public class Spring3HelloWorldConfig
{
public @Bean Spring3HelloWorld spring3HelloWorld()
{
return new Spring3HelloWorld();
}
}
3:-The method class file
public class Spring3HelloWorld {
public void sayHello()// method which prints whatever in sysout
{
System.out.println("Hello World");
}
}
Runing the test file gives us the output:-
Hello World