not yet...zzzzzzz
Type: Posts; User: jeremanalaotao
not yet...zzzzzzz
i want to exit that at 0 hehe
int [ ] arr = new int[ 10 ];
for(int i =8; i < arr.length; i--){
arr[ i ] = i - 1;
System.out.println(arr[ i ]);
this is my code for decrement..but it says "Exception in...
i did it on purpose..when i use -- it says outofbounds
int [ ] arr = new int[ 4 ]
for(int i = 0; i < arr.length; i++)
arr[ i ] = i + 1
System.out.println(arr[ i ]++)
im really a beginner here..can u teach me?i cant find it
variable b..yes i guess it needs to be converted?
convert that in nested for loop?
how about in nested for loop?how to convert that?
i really dont understand it .. T__T
hi what if its an integer?
when i type 1 it should be "Battleship" instead "wrong" appears..any number i type "wrong" appears
import.java.io*;
public class Ship
{
public static void main(String[]args){
BufferedReader dataIn= new BufferedReader ( new InputStreamReader(System.in));
String name=" ";
int b;