Shoulnd't u also write a void main? there u would call the other methods as setSalesTax, then u would call displayInfo.
I don't know much from it, just trying to solve that
Type: Posts; User: Nhedro
Shoulnd't u also write a void main? there u would call the other methods as setSalesTax, then u would call displayInfo.
I don't know much from it, just trying to solve that
i haven't tried none of those classes, but i will try to do has u say, work line by line, it may be much usefull. u are saying that if i use "the Arrays class's toString " i will get a word only?
It was supposed to be words instead of palavras, when i do the insert.split() i dont define the length of words, and it gives an error of OutOfBonds,
String [] word;
words = insert.split("...
Hi, i have an assignment where i have to do a histogram, that is i receive a text and must count the times each word in the text appears. This method receives a BufferReader and a BufferWritter,...
I've done it if someone is curious i post the code
static void removeLetters( BufferedReader orders, BufferedReader in, BufferedWriter out ) throws IOException;{
...
Thanks Norm, i think i understood, i will try it :).
the source is a .txt that was given to me, but it mut read any Buffer given; i must build those methods, anid would like to know if there is a way to know the length of the BufferReader, for...
I got an home assignment, that is composed by writting a class where i must have 3 methods:
>static void removeLetters( BufferedReader orders, BufferedReader in, BufferedWriter out ) throws...
in this case first you are saying if experience is lower than num 3 than if true, if experience num3 greater than experience
If it is for an array, u could also use a "for" or a do{...}while()
As Kevin said u still lack of some syntax; like for example think about joining some if, and put multiple conditions, u have two comands: "||" = or , "&&" = and, these are some of them, and cotting...
I'm new at java, but you should do what snowguy13 told you, he just wants to help, and you should organize your programm and comment it properly so that anyone who sees the code can understand it...
You are using too many variables, if u don't need them anymore u can just sum them to fourSavers, and just print.
Also u are summing sum and fourSavers in system.out.print();
i've tried it to see...
Didn't understand what are u really doing, but try using if() i guess:
i will write an example:
int age= 50;
if(age==50)
System.out.println("You are 50");
else
I'm also a begginer, in my opinion the best way at the start to make loops, is:
1.use do{...}while();
2.create a bollean ans use for(int i =0; boolean; i++); when u want to end the loop put...
I got other version of that program that asks the user the high of the triangle, and the symbol that he/she wants to use to print the triangle, I also wrote a simple menu
just to show;
...