Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i want to make it where i can get the string (2,p1, and 32) from the sentence at 2 add p1 32 1 import java.util.Scanner;
i want to make it where i can get the string (2,p1, and 32) from the sentence "at 2 add p1 32"
1 import java.util.Scanner; 2 3 public class call { 4 5 public static void main(String[] args) { 6 Scanner in = new Scanner(System.in); // at 2 add p1 32 8 //01 23 456 7 89 10 11 12 9 String n = in.next(); 10 System.out.println(n); 11 String w = n.substring(3); 12 System.out.println(); 13 14 15 } 16 17 } 18 A Problems @ Javadoc Declaration Console XStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started