i have function readInput() as show below
public void readInput()
{
System.out.println("Fruit Name:");
name=input.nextLine();
System.out.println("Fruit Country");...
Type: Posts; User: DavidXCode
i have function readInput() as show below
public void readInput()
{
System.out.println("Fruit Name:");
name=input.nextLine();
System.out.println("Fruit Country");...
i'm beginner to Java.. i have problem with writing the " display() " to display my input and " read input()" to read my input function.
1540
import java.util.Scanner;
class Fruitt
{
private String name;
private String country;
private boolean edible;
private double price;