Used to talk to people, chat with people on mobile.
Answer:
Code to the answer is shown in the explanation section
Explanation:
import java.util.Scanner;
public class Question {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
System.out.println("Please enter the days of the month: ");
int daysOfMonth = scan.nextInt();
int minuteOfMonth = daysOfMonth * 60 * 24;
System.out.println(minuteOfMonth);
}
}
// 60 represents the number of minutes in one hour
// 24 represents the number of hours in a day
He should use PowerPoint and the design should be feathered
Answer:
Explanation:
public class Main
{
private static String val; //current val
public static class TextInput
{
public TextInput()
{
val= new String();
}
public void add(char c)
{
if(val.length()==0)
{
val=Character.toString(c);
}
else
{
val=val+c;
}
}
public String getvalue()
{
return val;
}
}
public static class NumericInput extends TextInput
{
Override
public void add(char c)
{
if(Character.isDigit(c))
{
//if character is numeric
if(val.length()==0)
{
val=Character.toString(c);
}
else
{
val=val+c;
}
}
}
}
public static void main(String[] args)
{
TextInput input = new NumericInput();
input.add('1');
input.add('a');
input.add('0');
System.out.println(input.getvalue());
}
}