Thanks I'll give it a try.
Type: Posts; User: Evilreaper
Thanks I'll give it a try.
yea the "How do I iterate an ArrayList and find the desired index?"
is there an example of using them the index i mean? Because before I used arraylist i actually use the normal int odd = new int[]; but didn't like putting limit numbers so i switched to arraylist.
because the numbers are being separated with 2 var which is the odd array and even array, to separate the odd and even numbers and I'm trying to search the numbers in the odd array specifically.
I...
Compatibility with the converted int since int[] and int is not comparable types so i made it an array for it to be equal
and the number that its trying to search which is 31.
if...
So Im trying to display the location for the odd number which is 31. But it won't display the location of it.
as you see in the code. Im using bluej there's no error in compiling it's just i feel...
System.out.print('\u000C'); umm the code is just part of the coding inside Bluej that allows the user to clearscreen. I read it online here.
Bluej for ICSE Schools: Clearing the terminal
ah i see that's what i did wrong... no wonder it wont run as i wanted it to be.. thx for help.~ i had 2 pick var... it works fine now. thanks again.
Sorry norm get rid of the System.out.print('\u000C');
Im using BlueJ
here..
1955
Hello I have a problem in my coding. This coding is a Quiz Game creator. Lets say I want to create 3 question in this game.
and when the game starts.. it will display the 3 question.
So at that...
Thanks it helped even though i wasn't taught on how to use it~ decided to lurk around on what u meant.
Hello, Soo my java coding has this 2 ways of paymentterm that is cash and credit.
the problem is the category of the File that is being read would be on the Payment Term.
and the payment term...
Oh thank you so much I found the problem it was a careless mistake of lowercase and uppercase sensitivity.
Scanner readFile = new Scanner(new FileReader("C:\\Users\\user\\Documents\\DIT MKJB\\Programming Java\\customer.txt"));
PrintWriter writefile = new...
while(readFile.hasNext())
{
ReceiptNo = readFile.nextDouble();
PaymentTerm = readFile.next();
CustomerName = readFile.next();
ItemNo = readFile.next();
ItemName =...
Cannot Find Symbol - Variable writeFile
And also I took a print screen just in case.
import java.util.*;
import java.io.*;
import java.util.Arrays;
public class Assignment2
{
public static void main(String[]args ) throws FileNotFoundException
{
String[] A= {"Aaron...