• Register
0 votes


I need help in programming to solve my issue. Is there anyone who can help me ?
Write a complete main method that prints Hello, world to the screen?

7 5 3
5,380 points

1 Answer

0 votes


Try this approaches as its work for me :

public static void main( String [] args )
System.out.println( "Hello, world" );

System.exit( 0 );


public static void main(String[] a) 
System.out.println("Hello, world");


7 4 2
10,530 points

Related questions

0 votes
1 answer 77 views
Problem: Write a complete main method that prints Hello, world to the screen?
asked Mar 9 ArifulIslam 5.7k points
0 votes
2 answers 49 views
I'm new in java programming, I know how to find out the largest or smallest number from an array. But I'm facing problem when I'm trying to find out smallest staring in 3 string. Please help me write a method min that has three string parameters and returns the smallest.
asked May 2 samhaz 5k points
0 votes
2 answers 108 views
Problem: I am new to programming, so need query to get query to return max number from 3 integer? Write the definition of a method max that has three int parameters and returns the largest? Can anyone guide with correct code?
asked Feb 17 maddi86 5.4k points
0 votes
1 answer 44 views
I start programming recently and I love to do programming but every day I'm facing new problems. I wrote a java code where I can easily take two int input from a user and I'm able to print the smallest value. But I'm doing all things in the main method. I don't want to do ... smallest; if(a>b){ smallest = b; }else{ smallest = a; } System.out.println("Smallest is: "+smallest); } Here is my code.
asked May 3 samhaz 5k points
0 votes
1 answer 33 views
I started programming recently, I have learned some basic programming topics like loops, array and many more. But they are not enough to implement my concept in java. I can write a void method that can take 2 or more parameters and print the summation of all parameters. But now I want to ... * @param a * @param b */ public static void add(int a, int b){ int sum = a+b; System.out.println(sum); }
asked May 3 samhaz 5k points