also, if you look at string 'a1", i used ps.next() instead of ps.nextLine()... I thought nextLine was unnecessary. Why did you use nextLine for both of yours in your example?
Type: Posts; User: redbull
also, if you look at string 'a1", i used ps.next() instead of ps.nextLine()... I thought nextLine was unnecessary. Why did you use nextLine for both of yours in your example?
I AMMMMMMMMMMM A GENIUSSSSSSSSSSSSSSSSS MUAHAHHA BUHAHAHA BUHAHA MUHAHAHHA.... I AM DA BEST PROGRAMMER EVER.
real talk, thanks for your help me...
unfortunately I have a lot of unfinished...
ok I got my code working, but it has many logic errors... the coefficients can only be one number. how can i get it to read if it's one of two numbers. The substring is only coded for one digit...
problem here though.. the coefficients can be a one or two digit number. So the substring method will not catch the two digit coefficients since I am programming it for one. How do I get it to read...
zaphod, i just read what you typed. but is my way similar to yours? and after I type it after it compiles, say, "java TwoVariable 5x+3y=9 2x+6y=5", how do I get it to print out the solution? I can...
ok guys, i got a little bit further. First here is the code:
< import java.util.Scanner;
public class TwoVariable
{
public static void main(String[] args)
{
double...
so how do i take the index of an integer expression then? use parseInt, then covert it back to integer????? i do not want to use the substring method...yes, i guess my variables are doing what i want...
I haven't reached to the loop section yet, well, we did a little bit of "for" and "while"... Here's what I got so far. But I am wondering if java will allow me to subtract two equations with two...
this java method combines the two equations and gives me a logic error and ultimately the wrong answer... so it's combining the two equations into "7x + 9y -14 = 0" , which evaluates to x=2 and y=0....