what if i want to compare the values stored in my string array to the value stored in my int array
Type: Posts; User: darking123
what if i want to compare the values stored in my string array to the value stored in my int array
my problem is how can i compare the inputs from each other?
my question/problem is how will i code inside my method to do the example i provided
use joption only
enter 5 integers
enter a number: 5
Output: 5
Enter a number: 6
Output: 5 6
Enter A Number: 5
Output: Please Do not Input same Number
how to identify if the user input is a currency symbol
in java
i have no idea how
my problem is when i type NN to this code it ends my program..but i want that is i type more than one char it reloops again..
help please thank you
do{
System.out.print("\nDo You...
yup sir i know how it works..but i do not know where to place it to me program because it has many methods on it
what i dont understand is placing the do and while in my program that has many method on it...can you guide me
after The Area of a Triangle will be output a message that will say DO YOU WANT TO CONTINUE?? if i type Y then the program will reloop to the start where i will input the height etc. again
any more other guides??cant seem to make it work because of its many method i do not know where to place it
how will i add do{ while() to my program
this is my program
import java.util.*;
public class Triangle {
Scanner br = new Scanner(System.in);
private double height;
private double base;
according to my post above.. where should i plase the formula 0.5*height*base is it to the Triangle class or the area?
help me add those methods to my program??
how will i add public void setBase(double x) and public void setHeight(double x) also the public Triangle(double h, double b); to my program??
bump!!!!!!!!!!
i do not know what will i do the the constructor and how will i add the other to my program
how will i do this??
private double height;//Height
private double base;//Base length
public Triangle(double h, double b);//Constructor
public void setHeight(double x);//Sets height
...
my multiplication table code needs to have getRow(),getColumn(),displayTable() methods
but i dont have no idead how
here is my unfinished code
import java.util.Scanner;
public class tt {
cant find a solution
bump! anyone?
it will be the deadline tom i cant still finish it T_T...anyone please help me
i have been trying but it affects the entire program when i try to add it
i do not know where to start..please guide me
yes 1234 will be a valid input because it contains pure numbers....
about your solution how to do it??also i am using joption not buffered
oh you dont get what i said awhileago
the problem is
1. I enter: 10String
2. The Computer Says its A Digit then After i press Ok My Program shown an error
...the problem to my program is if i...