Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m using Eclipse/gilde Question: How do i call forth intro() and make it print

ID: 3608725 • Letter: I

Question

I'm using Eclipse/gilde


Question: How do i call forth intro() and make it
print out here ----->(System.out.println("Introduction:" +intro());
I want to call forth intro() and make usein in main but i forgot how to call methods from otherareas.
I know i made a mistake somewhere here.

public static void main(String[] args)
    {
   
        double Sharp;
        double Brie;
        double Swiss;
        double Receipt;
        double total;
       
        intro();
       System.out.println("Introduction:");
}

public static void intro()
       {  
           System.out.println("Hello welcome");
           System.out.println("How are you");
          
       }

Explanation / Answer

//Dear, if u want to call a method inprintln() then it mus have some return value, other call withoutprintln() //here is Myst.java for above code. class Myst{ public static void main(String[] args)     {         intro();        System.out.println();        System.out.println("Introduction:" +intro()); } public static int intro()         {            System.out.println("Hello welcome");            System.out.println("How are you");           return0;         } }