TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Krishna Rajput Singh
NA
4.9k
5.1m
What is solution for this code please help
Aug 25 2020 12:30 AM
import java.util.Scanner;
public class Test
{
public void demo()
{
int num,n;
Scanner obj=new Scanner(System.in);
System.out.println("Enter a number");
num=obj.nextInt();
n=comp(num);
System.out.println("Your number is " +n);
}
public static int comp(int a)
{
return (a>0)? "positive" : "negative";
}
}
Reply
Answers (
1
)
diagram gantt java swing
Please help me to Upload a pdf document or url link to firebase