Wow thanks MAN
I didn't realized it.
Could you explain the first part.
Type: Posts; User: kindk12
Wow thanks MAN
I didn't realized it.
Could you explain the first part.
I have this program here which has a table and an add button. By default there are already two data. I want to implement it in such a way that when I add new item by clicking the add button, I want...
[QUOTE=whome;71158]This is what I have so far...... not sure how to print out the asterisks from this point
{
int store1;
int store2;
int store3;
int store4;
int...
class b
{
public static void main (String[] args)
{
b class1 = new b();
b.Hours class2 = new b.Hours();
System.out.println("HOURS IN A DAY: "+ class2.calculateHoursInDays(2));
}
lets say you have a string name NAME and you wanted to count numbers of 'a' in it.
You should try
int count = 0; //to count the numbers of appearance of letter
for(int i = 0; i <...
looks great. Good work
when the error says could not load main class aa7, it probably should be an issue with the name of your file. You should know that in java, the name of the main class should be same as the file name....
please provide you code so that we can have look
There is a good way of doing it. I will give you the agorithm
1. you take an input string from the user lets say word
2. then you can use the lo statement
while(word.charAt(3) != ' ' &&...
can you tell the name of encryption algorithm you are using. I actually wanted to check your algorithm correctness.
i found the error now but your algorithm is wrong.
In you keydecrypt method nums = numValues(toArray(fin)); should be out of the loop statement. This was causing the problem.
overall it should be...
I found errors in you algorithm. After you encrypt the word mississippi, the numeric cypher text would be 82, 30, 0, 0 each at nums[0], nums[1] and so on. When the turns comes of the third value that...
First let me explain you what your program does. It taken be taken as a money counting machine. Suppose say in your country there are only money bill of 20, 10, 5 and 1. And say you want to know how...
I found your errors.
First at the beginning of the program where you defined your BEGIN_RATE, END_RATE AND RATE_INCR, you should change that to percentage value. It is because you have not changed...
This is a pretty much kind of design issue. When you have two class and you want them to interact and if you want to switch between them. I would recommend using a third class that will act like a...
starting out with java, TONY gaddis. This is a American book but one of the best out in market. Buy older version. They are cheap and practice each and every exercise in every chapters. This is how I...
I compiled and checked the result. The program is running perfectly fine. Let me explain what you program is actually doing. Suppose you wanted to know how much is 1 dollar in peso and you also...
THIS SHOULD RUN NOW
...edited by moderator
YOU CODE IS FULL OF CRAP
AND YOU NEED TO LEARN JAVA AGAIN DUDE
HERE IS WHAT CAN GIVE YOU THE OUTPUT
...
public class Car
{
private String make;
private String model;
private int year;
public Car() {
this.make = "Nissan";
this.model = "Sivia";
this.year = 1992;
I HAVE NOT SEEN YOU OTHER CLASSES AND FUNCTIONS BUT AS FAR AS I SAW YOUR LAST CLASS, I CORRECTED SOME STUFF THAT WILL GIVE YOU CORRECT RESULT.
THE OLD ONES ARE COMMENTED AND THE I HAVE ADDED THE...
Scanner in = new Scanner("datafile.txt") //wrong way
//RIGHT WAY
File file = new File("datafile.txt");
Scanner in = new Scanner(file);
I hope that helps if the rest of your code is right
CHECK THE LINE WHERE I PUT ARROW HEAD
import java.io.*;
import java.util.Scanner;
public class yourClass{
Starting out with java, by Tony Gaddis is the best book I have found so far. I learned java from that book and I find it still very useful. Every chapters are pretty much simple and anyone can...
Could you post the original copy of your project so I could understand what exactly you wanted. It looks kind of confusing.