Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Java compiler and interpreter
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


is there any online Java compiler and interpreter?


Advertisement
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


Related Tutorials/Questions & Answers:
compiler vs interpreter
compiler vs interpreter  "compiled program executes faster especially if the program contains loop" Why
Java interpreter
Java interpreter  What is meant by Java interpreter
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
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
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 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 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
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 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
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 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
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
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
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 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.  
online C compiler
?¬Â¦.i need to integrate the C compiler with the serverââ?¬Â¦can anyone explain how to do that and which compiler shall I use
Maven Compiler Plugin
In this section, you will learn about maven compiler plugin and how it can be configure in maven
C++ Compiler for Linux
C++ Compiler for Linux       Intel® C++ Compiler Professional Edition offers the best support.... The Professional Edition combines a high performance compiler with Intel® Threading
java qustion
java qustion  how is compiler differ from interpreter?why they use differtly?can we combine it together as single unit?what r there purposes
Chaldean universal identifications names compiler on the application for Funtepoz
Chaldean universal identifications names compiler on the application for Funtepoz  I want to set up criteria on application table. It is chaldean numerology. I want 30 letters and 4 names in the identification and L and E should
Chaldean universal identifications names compiler on the application for Funtepoz1
Chaldean universal identifications names compiler on the application for Funtepoz1  In which programme this VBA can be writen: Function Tryme(mycell) mylen = Len(mycell) For j = 1 To mylen mytest = UCase(Mid(mycell, j, 1
JVM - Java Beginners
JVM  Hi, Is JVM a compiler or an interpreter? Thanks   Hi Friend, JVM is an interpreter. Thanks
List of Java Exception
; the exception handled by the java compiler. Java consists of the following type of built... to invalid argument passed to  method. The java Compiler does not check... List of Java Exception     
List of Java Exception
; the exception handled by the java compiler. Java consists of the following type... due to invalid argument passed to  method. The java Compiler does... List of Java Exception     
java-basics
is executed by an interpreter. The just-in-time compiler comes with JVM...java-basics  hi,tell me what is the JIT and usage of it?  The just-in-time compiler compiles byte code into native machine language.Java
Advertisements
 

 

 

DMCA.com