goxr3plus / goxr3plus/Java-Speech-Recognizer-Tutorial--Calculator

Java.lang.Error in mkaing object Message and Time

Open
#11 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
52
Forks
72
PR merge metrics
No merged PRs in 30d

Description

**Dear All,**
I wrote the following code and ended up with below mentioned error:**
Please suggest some solution.

import java.io.*;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Timer;

public class Bin_search
{
public static void main(String args[])
{
Bin_search b=new Bin_search();

System.out.println("Enter the String");
Scanner input=new Scanner(System.in);
String msg=input.nextLine();
System.out.println(msg);

Message messageObject=new Message();
Time timeObject=new Time();

messageObject.simpleMessage(message);
timeObject.getTime();

System.out.println(msg + time);
}

}

Error:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Message cannot be resolved to a type
Message cannot be resolved to a type
Time cannot be resolved to a type
Time cannot be resolved to a type
message cannot be resolved to a variable
time cannot be resolved to a variable

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.