anybody know what's wrong with my code start from this part:
if (roomNumber == 1){
if (HouseA1[roomNumber-1] < 2) {
HouseA1 [roomNumber-1] += 1;
why i can't book a room again in the that...
Type: Posts; User: Zaki
anybody know what's wrong with my code start from this part:
if (roomNumber == 1){
if (HouseA1[roomNumber-1] < 2) {
HouseA1 [roomNumber-1] += 1;
why i can't book a room again in the that...
i run it on NetBean, and this the error:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at...
I got this error :
at java.lang.String.charAt(String.java:658)
at University_Apartment.main(University_Apartment.java:54)
Java Result: 1
when I choose the house number in my program.....
I have no idea what's the mistake,
Its say illegal start of expression & while expected at the end of the code..
Any help will be much appreciated.. :)
import java.text.*;