Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Double res = 0.0;
- Scanner in = new Scanner(System.in);
- String expression = in.nextLine();
- }
- }
- /*String avNums = "0123456789";
- String avLetters = " ()./*-+";
- String[] splitEx = expression.split("");
- Boolean stop = false;
- for (int i = 0; i < splitEx.length; i++)
- if (!avNums.contains(splitEx[i]) || !avLetters.contains(splitEx[i]))
- {
- stop = true;
- break;
- }
- if (stop)
- {
- System.out.println("Input error");
- }
- else
- {
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement