Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
package bucky;
import java.util.Scanner;
public class apple {

	public static void main(String args[])
{	
 tuna o=new tuna("garima ", 52);
 o.dip();

}
}

package bucky;

class tuna
{
	String n ; int a ;
	
	public tuna(String name , int age )
	{
		n =name;
		a =age;
		
	}

public void dip()
{
	System.out.println("enter name enter age ");
	
}





}


What I have tried:

not getting output ......................................................................................................................................................................................................................................................................................................................................................
Posted
Updated 24-Jun-18 4:43am

1 solution

Your code works fin on my system. Please explain exactly what happens when you run it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900