Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java scanner equation

System.out.println("Enter the equation");
      double a = sc.nextDouble();
      char b = sc.next().charAt(0);
      double c = sc.nextDouble();
      System.out.println(a);
      System.out.println(b);
      System.out.println(c);
      if (b == '+')
      {
    	  System.out.println(a + c);
      }
Comment

PREVIOUS NEXT
Code Example
Java :: ["org.elasticsearch.bootstrap.startupexception: java.lang.illegalstateexception: failed to obtain node locks, 
Java :: leak canary 
Java :: string.equals 
Java :: signed and unsigned data types in java 
Java :: java take inpt into arraylist 
Java :: how to add a hyperlink in a string in java mail 
Java :: has 8 digit in number 
Java :: merced A class 
Java :: how to do two constructors with super 
Java :: jdbc outside of ide 
Java :: action media scanner scan file android 30 deprecated 
Java :: List Double, fixed size 
Java :: Java Creating WeakHashMap from Other Maps 
Java :: setUndecorated java 
Java :: java switch expression produce result 
Java :: how to stop spring boot application 
Java :: how to convert string to int android studio kotlin 
Java :: java notnull returns null 
Java :: java two constructors 
Java :: how to create gravity in Java 
Java :: Java Integer Literals 
Java :: Java Program to Print Spiral Pattern of Numbers 
Java :: What are the design patterns involved in JDBC architecture? 
Java :: JavaFX font display issue 
Java :: join table in where clause criteria in java hibernate 
Java :: java assert keyword 
Java :: what does the continue keyword do in java 
Java :: ways to add properties to Bean Spring 
Java :: java schleifendurchläufe zählen 
Java :: pyqt tree view 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =