# Java Programming/Q&A

* Navigate Project Page topic: ( v • d • e )
* Recent changes
* If you have questions related to Java
* If you are interested in editing this book
* How to format the content
* Who is contributing
* Traffic
Feel free to post any questions you have while learning Java Programming. If you have questions about this book, post them on the Java Programming discussion page. If you know the answer to a question, or you can improve any, go ahead and do it.
RMI is much simpler to use than CORBA, so in an only Java environment RMI should be used.
RMI is much simpler to use than CORBA, so in an only Java environment RMI should be used.
The Vector and Hashtable classes are legacy classes that come from the 1.0 version of Java and have enforced synchronized methods resulting in performance issues on systems that does not require this characteristic. Additional classes were added at 1.2, those are ArrayList and HashMap, without synchronization. Both syncronized and not syncronized versions are implementing the List and Map interfaces, respectivelly.
The Vector and Hashtable classes are legacy classes that come from the 1.0 version of Java and have enforced synchronized methods resulting in performance issues on systems that does not require this characteristic. Additional classes were added at 1.2, those are ArrayList and HashMap, without synchronization. Both syncronized and not syncronized versions are implementing the List and Map interfaces, respectivelly.
The goto is reserved, but not used.
The goto is reserved, but not used.
* A Java file located on a CD should be opened the same way as a Java file on a hard disk. You should use the path of the file on the CD. If you want to open a file from the command line or a prompt, use the cd command to move to the folder and open your Java file as you would open a text file.
* Do not confuse an object of a class and a field of a class. out is a field of the System class and out is an object of the PrintStream class.
* Only out in the System class is linked to the standard output at Java startup. That's why you must use the System class.
* A Java file located on a CD should be opened the same way as a Java file on a hard disk. You should use the path of the file on the CD. If you want to open a file from the command line or a prompt, use the cd command to move to the folder and open your Java file as you would open a text file.
* Do not confuse an object of a class and a field of a class. out is a field of the System class and out is an object of the PrintStream class.
* Only out in the System class is linked to the standard output at Java startup. That's why you must use the System class.

## Programming code..

What is the code that one can use in java to display height in feet (int) and inches(int)?

## (!)Why does this not work plz help ASAP(!)

import java.util.Random; import java.util.Scanner; class Main {
no = random.nextInt (3) + 1;
rock = 1;
paper = 1;
scissors = 1;
{ System.out.println ("You Win"); loop++; }
{ System.out. print ("You loose want to play again? Type 0 to play again or type 1 to Exit: "); loop = scanner.nextInt; }
System.out.println ("Tie try again");

## Java

Write a program that calculates the current checking account balance, based on user input.
Inputs:
Ask user for account number and name.
Ask user for opening balance.
Ask user for up to 5 debit transactions, user can stop entering by typing -1.
Ask user for up to 5 credit transactions, user can stop entering by typing -1.
Processing:
Calculate new balance.
Output:
[Account number] - [Customer first name] [Customer last name]
Original Balance: [Original balance]
Debits: [Number of debits]
Debit Total: [Debit total]
Credits: [Number of credits]
Credit Total: [Credit total]
Balance: [Current account balance]