Member Avatar

i have a .csv file contain some name as below: William Shakespeare charlie chaplin david Copperfield and i'm supposed to write a java program that will turn the input above into the output below: WS cc dC but i still couldn't get the output that i want, i wanna ask is there anything wrong with my code below? import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; import java.io.*; public class tryname { public static void main(String[] args) { tryname obj = new tryname(); obj.run(); } public void run() { BufferedReader reader = null; char tempname; //int point =0; …

Member Avatar
+0 forum 15
Member Avatar

hello, i'm confused here. i have an assignment that required me to create a project registration program that have student, project and supervisor. i haven't start to do it yet. but i've gone through the question. there's a part of the program that need to list out the student's, supervisor's and project's attributes that the user had enter. i thought of using vector to store all the attributes. but i don't think vector can do/store the attribute and list it out with something like this: project's name: Computer Supervisor: DR Stanley Student Name: Robbinson Student ID: 12345532 so, i'm not …

Member Avatar
+0 forum 12
Member Avatar

hello, i want to get some guidance from the reader who read my post. I'm doing a game called deal or no deal using c++ and i can't think of other way to print the box's number instead of printing the value inside. what i want to do is, user input the number of the box he/she select and print the value inside. what i can think of is use pass by reference by calling the function that store the value inside the box once the user input the number. but it came out error. i wonder that is my …

Member Avatar
+0 forum 23

The End.