我需要一个程序或一个工作方向 [英] I need a program, or a direction to work with

查看:57
本文介绍了我需要一个程序或一个工作方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我目前正忙于一大堆工作并且有一项相当简单的任务,但由于所有这些其他的东西,我似乎无法直接思考它,或者我认为它。这是给我的作业:

---------------------------------- ------------------------------------

>写一个应用程序提示用户输入全名和街道地址,并按如下方式构建ID:用户街道名称的前3个字母颠倒,地址的数字部分,用户名字的第一个字母用户姓氏的最后一个字母。



例如,住在34 Elm的用户William Harrison的ID为mlE34Wn,而生活在1778 Monroe的用户Addison Mitchell的ID为noM1778Al。<< br mode =hold/> ---------------------- ------------------------------------------------ <无线电通信/>


现在,如果有人可以为我启动它,或者甚至只是做一个糟糕的版本并有评论来帮助我理解它,那将非常感激。虽然我知道这个网站上一个问题的要求是针对一个问题的具体问题,但即使没有正确的思维方式,我也不能具体。请不要把它拆下来帮我解决!

Hello, i am currently swarmed with a whole bunch of work and have an assignment that is fairly simple to do, but because of all this other stuff i can''t seem to think straight on it, or i over think it. Here is the assignment given to me:
----------------------------------------------------------------------
>Write an application that prompts a user for a full name and street address and constructs an ID as follows: the first 3 letters of the user''s street name reversed, the numeric part of the address, the first letter of the the user''s first name and the last letter of the user''s last name.

For example, the user William Harrison who lives at 34 Elm would have an ID of mlE34Wn, whereas the user Addison Mitchell who lives at 1778 Monroe would have an ID of noM1778Al.<<br mode="hold" />----------------------------------------------------------------------

Now if someone can start it off for me, or even just do a poor version of it and have comments to help me understand it, that would be greatly appreciated. Although i know the requirements for a question on this site is to be specific with a problem, i can''t be specific without even having the right mindset to start. Please don''t have this taken down and help me out!

推荐答案

我们不做你的功课,因为原因是 - 它就是你想到的你被告知了什么,并试图理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。

进一步检查这些链接这将有助于您完成任务

用于反转字符串的java程序 [ ^ ]



结合字符串示例 [ ^ ]

获得第一个&字符串的最后一个字母 -

We do not do your homework because the reason is- It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Further check these links this will help you to do your assignment
java program to reverse a string[^]

Combine String example[^]
get first & last letter of string-
public class test {
 public static void main(String args[]) {
  String string = args[0];
  System.out.println("last character: " +string.substring((string.length() - 1));
System.out.println("first character: " +string.substring(string.charAt(0));
 }
}



从此获取整数


get integer from this

char c = string.charAt(string);
isDigit = (c >= ''0'' && c <= ''9'');



但在通过此之前请自己考虑一下问题


这篇关于我需要一个程序或一个工作方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆