Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Java compiler and interpreter

Ads

 
 

Share on Google+Share on Google+

vikas
Java compiler and interpreter
1 Answer(s)      9 years ago
Posted in : Java Beginners

is there any online Java compiler and interpreter?

Ads
View Answers

April 9, 2008 at 6:09 PM


hi friend

import java.util.*;
import java.io.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;

public class TokenizeToString{
public static void main(String [] args){
BufferedReader in = new BufferedReader( new InputStreamReader(System.in));
Scanner scan = new Scanner(System.in);
System.out.println("Enter several integers separated by &, /, spaces");
String input = scan.nextLine();
String str = "&/-*%+ ";
StringTokenizer st = new StringTokenizer(input, str);
int x = Integer.parseInt(st.nextToken());
int y = Integer.parseInt(st.nextToken());
int z = Integer.parseInt(st.nextToken());
int x2 = Integer.parseInt(st.nextToken());
int y2 = Integer.parseInt(st.nextToken());
int z2 = Integer.parseInt(st.nextToken());
int h = x * y;
int u = x2 + y2;
System.out.println(x);
System.out.println(z);
System.out.println(y);
System.out.println(x2);
System.out.println(z2);
System.out.println(y2);
System.out.println(h);
System.out.println(u);
}
}

-----------
Hope it will help u.

For more information,

http://www.roseindia.net/java/beginners/StringTokenizing.shtml

amar

Ads









Related Tutorials/Questions & Answers:
Java interpreter
Java interpreter  What is meant by Java interpreter
compiler vs interpreter
compiler vs interpreter  "compiled program executes faster especially if the program contains loop" Why
Advertisements
Java Interpreter
Java Interpreter      ... interpreter. That is why Java applications are platform independent. Java interpreter... System. Basically, A Java interpreter is a software that implements the Java
Java Interpreter
Java Interpreter      ... interpreter. That is why Java applications are platform independent. Java interpreter... System. Basically, A Java interpreter is a software that implements the Java
Java Interpreter
Java Interpreter      ... interpreter. That is why Java applications are platform independent. Java interpreter... System. Basically, A Java interpreter is a software that implements the Java
INTERPRETER
INTERPRETER  how to write a simple interpreter in java that can execute simple commandes like adding two integers and sysout a result and calling java classes and executing the methodes in that class
java compiler
java compiler  how we can convert .java file to a .class file without using javac
We can run Java on most platforms provided a platform must has a Java interpreter
Java Interpreter      ... interpreter. That is why Java applications are platform independent. Java interpreter... System. Basically, A Java interpreter is a software that implements the Java
Java Compiler
Java Compiler      ... Compiler. When we write any program in a text editor like Notepad, we use Java compiler to compile it. A Java Compiler javac is a computer program or set
Java Compiler
Java Compiler       To commence with Java programming, we must know the significance of Java Compiler. When we write any program in a text editor like Notepad, we use Java compiler
Java Compiler
Java Compiler       To commence with Java programming, we must know the significance of Java Compiler. When we write any program in a text editor like Notepad, we use Java compiler
Compiler errors in java
Compiler errors in java  Hi, I used GenerateRDF java file. Am getting errors when i run this code. I used command prompt only. getting errors as no package exist. i followed your instructions properly. Please help me out
Java Compiler,Java Compiler Example
Java Compiler      ... Compiler. When we write any program in a text editor like Notepad, we use Java compiler to compile it. A Java Compiler javac is a computer program or set
java compiler error
java compiler error  I am trying to compile a simple program which is as follows: public class A { public static void main(String args... as well.But putting class B in different file named B.java compiler complains about
java-basics
java-basics  hi anybody tell me, JVM is a compiler or an interpreter?  JVM is not a compiler, it is a interpreter
Java Compiler Error - Java Beginners
Java Compiler Error  I get this error when i compile this Java inheritance OOP. What I'm i doing wrong. F:\Java\WorkerDemo.java:9: cannot find symbol symbol : constructor ProductionWorker(java.lang.String) location: class
which package imported by the java compiler by default?
which package imported by the java compiler by default?  which package imported by java by default
Java Compiler error - Swing AWT
Java Compiler error  Hi, I try to add quartz Lib in my HelloQuartz... can add Jar File in Java Build Path Library. i get this message : " No entries... and commons-collections.jar in JAVA BUILD PATH/Libraries/, By Clicking ADD External JAR
Online Java Compiler
Online Java Compiler provides the Java development environment online, which... is a competitive online Java compiler. Using Online Java Compiler you can instantly start..., Ruby etc. Online Java compiler and runner are basically a Java compiler
Version of com.thesett>interpreter dependency
List of Version of com.thesett>interpreter dependency
Java Tools
; Java Compiler To commence with Java programming, we must know the significance of Java Compiler.    Java Interpreter  We can run Java on most platforms provided a platform must has a Java interpreter.  
Java Tools
; Java Compiler To commence with Java programming, we must know the significance of Java Compiler.    Java Interpreter  We can run Java on most platforms provided a platform must has a Java interpreter.  
Version of com.saucelabs>sebuilder-interpreter dependency
List of Version of com.saucelabs>sebuilder-interpreter dependency
Maven Dependency interpreter >> 0.8.11
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.11 in your project
Maven Dependency interpreter >> 0.8.5
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.5 in your project
Maven Dependency interpreter >> 0.9.117
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.9.117 in your project
Maven Dependency interpreter >> 0.8.2
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.2 in your project
Maven Dependency interpreter >> 0.8.8
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.8 in your project
Maven Dependency interpreter >> 0.8.16
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.16 in your project
Maven Dependency interpreter >> 0.8.12
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.12 in your project
Maven Dependency interpreter >> 0.8.18
You should include the dependency code given in this page to add Maven Dependency of com.thesett >> interpreter version0.8.18 in your project