may someone give me a sample code of loop within a loop, and other that I may use for decision in my program.
coud_ren_26
-11
Junior Poster in Training
Recommended Answers
Jump to PostI think u should provide some code, then we can help when u get stuck.
Jump to Postimport java.util.Scanner; public class listProduct { public static void main (String[] args){ int productChoice;{ Scanner scanAnything = new Scanner(System.in); System.out.print("Processed Milk"); System.out.print("\t\t\t\t" + "Price"); System.out.println("\t\t" + "grams/size"); System.out.println(""); System.out.println("Condensed"); System.out.println(""); Double[] price = new Double[100]; price [1] = 46.30; price [2] = 52.10; String[] milk = new …
All 7 Replies
Thirusha
20
Posting Whiz
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
akulkarni
0
Junior Poster
coud_ren_26
-11
Junior Poster in Training
coud_ren_26
-11
Junior Poster in Training
coud_ren_26
-11
Junior Poster in Training
akulkarni
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.