i really can't make it work :((( sample codes please :(((((
--- Update ---
i really can't make it work :((( sample codes please :(((((
Type: Posts; User: JanAlbertLam
i really can't make it work :((( sample codes please :(((((
--- Update ---
i really can't make it work :((( sample codes please :(((((
- how do i correct this? :(((
this is really wrecking my brain :((( it's jumbling in my head :((
import java.io.*;
public class MP2Num13
{
public static void main (String Args[]) throws IOException
{
int abc1=0;
int[] abc = new int[15];
int tot=0, n_count=1;
...
-for this instance, it should display this:
Numbers in the even indexes are:
1 3 5 7 9 1 3 5
The total stored in the odd indexes is: 26
--here, it displays all zeros :((
can you help me with syntax for that instance? HELPS WILL BE GREATLY APPRECIATED :(( THANKS
import java.io.*;
public class MP2Num13
{
public static void main (String Args[]) throws IOException
{
int[] abc = new int[15];
int tot=0, n_count=1;
BufferedReader...
it's not giving me the said error :(( I JUST NEED MORE HELP :((
this is my error:
MP2Num13.java:31: error: bad operand types for binary operator '+'
tot+=abc[x];
my version is 1.7.0
what exactly does that mean? :(
--- Update ---
i just tried., and it didn't work :((
MP2Num13.java:13: error: incompatible types
abc[x]=Integer.parseInt(br.readLine());
^
required: int[]
found: int
MP2Num13.java:29: error: bad operand types for binary operator '+'
tot+=abc[x];...
import java.io.*;
public class MP2Num13
{
public static void main (String Args[]) throws IOException
{
int abc[15], tot=0, n_count=1;
BufferedReader br = new...