hi, i have just started programming and have trouble importing this miglayout.jar that i downloaded from the website into my jcreator. what do i need to do to use this custom layout?
Type: Posts; User: lotus
hi, i have just started programming and have trouble importing this miglayout.jar that i downloaded from the website into my jcreator. what do i need to do to use this custom layout?
because im at the final stage of my project, i have users input choice of 1 2 or 3 , but if a user inpuuts a non int number like a it gives a error, so if i want to solve these type of problems i...
why do you use a char[]??? and not char myChar;
my teacher only teach to read char with system.in.read(),is there any way to read a char with scanner?? and is a String of "a" same as a char of 'a' .
i tried using nextLine but it also skips to another line
i figured it out when i put this static Scanner myScanner = new Scanner(System.in).useDelimiter("\r\n"); it works any idea what the .useDelimiter does?
i used .next() in my program and when i type a sentence with a spacing it goes to the next line with another prompt sentence anyone knows why?
i will upload screenshots of the problem i have.
...
i solved it thanks for help helloworld
if you take a look at my code(not yet completed but compilable)
at Paste #128981 | LodgeIt!
and run it, when you choose choice 1, it asks to create a stock portfolio, you create 1 stock and then...
it still do not work, it gets replaced, my friend helped me do a 2dimensional array and it worked but i am having trouble learning how it works.
my needs int and double types to store the amount of money input, so i cant use aaraylist
i have not learnt ArrayList class and also i tried doing it your way but it is still the same the array got replaced when i enter a new 1
what about the termination condition, because count1 is a input by user of 1-99, if the user inputs 1 for a new for loop with the condition already at 5 wont it terminate immediately
for( i = 0;i<count1;i++){
while(mod){
stockName[i] = portFolioStockName();
stockSym[i] = portFolioStockSym();
unitPrice[i] = portFolioUnitPrice();
unitBought[i] =...
yes i figured it out, i used a for loop
i never thought anyone would reply , but after some modifications and some advice from my school teacher,
the program is still not complete and has some errors.i do not understand how does your...
static void updateSharePrice(int i){//Start of updateSharePrice method
System.out.println("Here is your current list of stocks : \n");
System.out.print("\t\t\t\tBought Current...
mod = (myInt != 0); what does this line of code actually do?
boolean mod = true;
for( i = 0;i<count1;i++){
while(mod){
stockName[i] = portFolioStockName();
stockSym[i] = portFolioStockSym();
unitPrice[i] = portFolioUnitPrice();...
i need help on a java project, i am still a beginner so i havent learnt alot of advanced techniques yet,i have taken a screenshot of the questions as it is hard to explain it.
...
i mean is there any difference in the input it takes? or is it that both will capture any keyboard input
what is the difference between
input.next() and
findInLine(".")charat(0);
ok i got it thanks
import java.util.Scanner;
class TicketPriceWithDiscount {
public static void main(String args[])
{
Scanner myScanner = new Scanner(System.in);
int age;
double price = 0.00;...