I can’t seem to figure out how to get my code to move to a New line… can you help
// import statements
import java.lang.*;
import java.util.*;
// Create a class named ParseStrings
public class ParseStrings
{
// Create a main method
public static void main(String[] args)
{
// Create a string named inputString to accept input from the user
String inputString, firstWord, secondWord;
int comma = 0, nextComma = 0;
// Create an object for the scanner class
Scanner read = new Scanner(System.in);
// Create a boolean variable named flag
boolean flag = true;
// Create a do while loop to accept data
// continuously if the user enters wrong input
while (true)
{
do
{
System.out.println(“Enter input string: “);
// Accept data from the user
inputString = read.nextLine();
if (inputString.equals(“q”))
{
System.exit(1);
}
// Get the index value of the comma
comma = inputString.indexOf(“,”);
nextComma = inputString.lastIndexOf(“,”);
// Create a if statement to check the input string
// contains more commas or not
if (nextComma > comma)
{
System.out.println(“Error: Too many comma in string”);
flag = true;
}
// Create an else if statement to check the input string
// contains atleast one comma or not
else if (comma <= 0)
{
System.out.print(“Error: No comma in string”);
flag = true;
}
else
{
// Split the string from the index of comma and
// assign the substrings in the data string array
String[]data = inputString.split(“,”);
// Remove all white spaces in the data string
firstWord = data[0].replaceAll(” “, “”);
secondWord = data[1].replaceAll(” “, “”);
// Display data
System.out.println(“First word: ” + firstWord );
System.out.println(“Second word: ” + secondWord );
flag = false;
}
} while (flag);
}
}
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can T Find Any Solutions To Compare My Answers For These Questions Thank You H
/in Uncategorized /by developerHi! I need help with this ASAP.. I can’t find any solutions to compare my answers for these questions. Thank you!
http://ocw.mit.edu/courses/civil-and-environmental-engineering/1-050-solid-mechanics-fall-2004/assignments/pset04_6.pdf
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can T Find My Homework Eng 102 Introduction And Conclusion Apendix M
/in Uncategorized /by developerI CAN’T FIND MY HOMEWORKENG/ 102 Introduction and Conclusion APENDIX M
Running head: SOCIAL BEHAVIOR 1 Social BehaviorNameInstitution SOCIAL BEHAVIOR 2 Social BehaviorIntroductionBehavior that is specifically social always tilts towards other selves (Read &…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can T Seem To Figure Out How To Get My Code To Move To A New Line Import Java
/in Uncategorized /by developerI can’t seem to figure out how to get my code to move to a New line… can you help
// import statements
import java.lang.*;
import java.util.*;
// Create a class named ParseStrings
public class ParseStrings
{
// Create a main method
public static void main(String[] args)
{
// Create a string named inputString to accept input from the user
String inputString, firstWord, secondWord;
int comma = 0, nextComma = 0;
// Create an object for the scanner class
Scanner read = new Scanner(System.in);
// Create a boolean variable named flag
boolean flag = true;
// Create a do while loop to accept data
// continuously if the user enters wrong input
while (true)
{
do
{
System.out.println(“Enter input string: “);
// Accept data from the user
inputString = read.nextLine();
if (inputString.equals(“q”))
{
System.exit(1);
}
// Get the index value of the comma
comma = inputString.indexOf(“,”);
nextComma = inputString.lastIndexOf(“,”);
// Create a if statement to check the input string
// contains more commas or not
if (nextComma > comma)
{
System.out.println(“Error: Too many comma in string”);
flag = true;
}
// Create an else if statement to check the input string
// contains atleast one comma or not
else if (comma <= 0)
{
System.out.print(“Error: No comma in string”);
flag = true;
}
else
{
// Split the string from the index of comma and
// assign the substrings in the data string array
String[]data = inputString.split(“,”);
// Remove all white spaces in the data string
firstWord = data[0].replaceAll(” “, “”);
secondWord = data[1].replaceAll(” “, “”);
// Display data
System.out.println(“First word: ” + firstWord );
System.out.println(“Second word: ” + secondWord );
flag = false;
}
} while (flag);
}
}
}
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can T Understand What This Question Is Asking For
/in Uncategorized /by developerI can’t understand what this question is asking for.
Consider whether it is possible to represent the surface xy-ayln(z)+4(z^2-1)=0 in the form z=f(x,y), where f is a single-valued function in a neighbourhood of the point (x,y,z)=(0,3,1). The value of a for which this might not be possible is:
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can Take It On Tues What Is A Fair Price Pushed The Due Date Out Business To B
/in Uncategorized /by developerI can take it on tues what is a fair price pushed the due date out. Business-to-Business Messages. This paper should be posted as a Word attachment in the Assignments link on eCampus and should adhere to APA formatting.· Resource: University of Phoenix Material: Appendix A· Select three business-to-business messages.· Analyze the messages using the communication process. The analysis should include a descriptive explanation of characteristics that would improve the messages, including the following:o Descriptions of the purpose, sender, receiver, message, environment, technology, noise, and feedback o Explanations of whether the message and technology were appropriate given the environment and purpose· Write a business-to-business message that has ABC Company asking to create a working relationship with XYZ Company. · Write an unfavorable reply message to ABC Company. The message can be denying the working relationship, for example, due to ABC’s credit, prices, reputation, services provided, needs, technology, and so on. · Write a 1,400- to 1,750-word paper that includes your analysis of the business-to-business messages using the communication process.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Can Understand Religious Symbols Practically Every Religion Has Them Christian
/in Uncategorized /by developerI can understand “religious symbols” practically every religion has them, Christianity has the “Cross”, Catholicism has the “Virgin Mary” and “rosary beads” and the Daoist have symbols such as “yin and Yang”. These symbols help people associate different religions. You speak of “religious truth” but doesn’t every religion have their own truth? If words and concepts are considered to be vulnerable and people can`t stand firmly on the ‘religion” they claim then how secure is their faith? Not everyone claims their is a G-D but we consider them to be fools but wouldn’t we be considered the fools for arguing with someone when we know the truth or what we perceive to be our truth.
Can anyone help me with this? Give me an advice to answer bolded question?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Cannot Find These Mechanisms In My Professors Notes As They Re Necessary To Kn
/in Uncategorized /by developerI cannot find these mechanisms in my professors notes as they’re necessary to know for the exam. Any random examples for each of these different types of reactions drawn out would help me learn and understand what these reactions do. Please, help! A simple reactant and product for each will work well, thanks!
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Cannot Open Notepad From My Host Machine In Command Prompt To Open On My Virtu
/in Uncategorized /by developerI cannot open notepad from my host machine in command prompt to open on my virtual machine.
vmrun -T ws -gu <Dania McDonald> -gp <Wendy255> runProgramInGuest “C:UsersHP COMPUTERDocumentsVirtual MachinesWindows 10 x64Windows 10 x64.vmx” notepad.exe
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Cant Get This Practice Question Right At All You Have Been Awarded A Settlemen
/in Uncategorized /by developerA. You have been awarded a settlement of $14000 per year for the next three years. The fair rate is 8%. I offer to pay you $40000 for it now. Should you sell it? B. You have borrowed $210000 for a new house. The rate is 6%. Repayment is structured as a 20 year, 4% growing annuity. What is your first payment?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Choose Endangered Species Act Here S The Question Describe Three 3 Key Element
/in Uncategorized /by developerI need help with environmental discussion question.
I choose Endangered Species Act here’s the question.
Describe three (3) key elements of the regulation or policy you chose. Specifically, discuss who is affected and what actions they are required to undertake, including federal and state agencies and specific industries and the requirements enforced. Justify your response with a reputable cite or source.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"