Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java.lang.Error in mkaing object Message and Time #11

Open
shashank-bgp opened this issue Jul 8, 2020 · 1 comment
Open

Java.lang.Error in mkaing object Message and Time #11

shashank-bgp opened this issue Jul 8, 2020 · 1 comment

Comments

@shashank-bgp
Copy link

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

@goxr3plus
Copy link
Owner

Where did you found this code , looks like i am watching it for first time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants