refer this link:File I/O
Type: Posts; User: Tamilarasi
refer this link:File I/O
This code is work for me. you are get FileNotFoundException.
So you check your file path.
Put correct file path.
Are you told about this methods?
public String getName() {
return name_;
}
public void setName(String name) {
this.name_ = name;
you have to add braces in your condition
and concentrate with your return statement..
Learn this: coding style - Single statement if block - braces or no? - Programmers
you first learn how to search string from 2d array and then you fetch the other items depends on the searching string
Searching a 2d Array (Java) for an element - Stack Overflow
you got any exception or when you struck the process?
First of all i posted only the basic issue for how to pass the array from one to another class. Then i explained what is issue how to fix that issue in within comments for posted code.once you read...
you didn't call the methods like calc_averages() and calc_average() anywhere then how to print the average in your screen..
you first call the methods in your class and assign return statement in...
I think you need this
...removed
I hope this link will be help to you
Files & Directories : Java Glossary
you made mistake on your loop. Because you used double for loop
So process completed the first for loop and print the statement after that that will be go to another one.
So print your output...
can you post your code what you tried so far?
you search and read this type of links:
Java - Basic Data Types
Java Tutorial - Lesson 2: Variables and Data Types
you create array with fixed length. So the output print with zeros..
you refer this link: Java array declaration without hard coding the size - Stack Overflow
Refer this link:
Fibonacci Series Java Example | Java Examples - Java Program Sample Source Code
I hope this will be help to you
Please concentrate your scanner this is very simple issue
you refer this link:How to use the Scanner class in java? - Stack Overflow
you create the public boolean isOn ( boolean newOn ) method with parameter.
So you must call this method with parameter like this..
testfan1.isOn(false);
And this method only print the...
i think you want to calculate the average 2d array..
if you want this refer this link:
finding average in 2d arrays
Otherwise you post your code completely and explain your doubt clearly....
yes you get all values of x=[] for zone=2 from the starting of zone=1.
Because you only create the list like below..
List<Double> x = new ArrayList<Double>(); //Defining double arraylist...
Can you post your code what you have tried so far?
that will be easy to help you...
yes you have made the mistake on this line
gMain.window.setLocation(null);
your code set the null location. So you have got the null pointer exception
you set any values in location like...
what is your question can you please ask clearly?
What you have tried so far?
I think you try to create currency convertor in java.
Can you post your code? that will be help easy to help you...
You have open the { brace and return false; unnecessarily. Because you don't create any method
you create the code like this..
if (W.charAt(i) != W.charAt(N-1-i))
{
...
your Result 232792560%11 is 0 is correct.
What you exactly want. and What is wrong with you code?
can you explain clearly?